- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
string name; while (name == "Himanshu" || name == "HIMANSHU") //while should begin with a small 'w' { //Code }
using System; class Satvinder { static void Main() { string name = Console.ReadLine(); char[] naam; if(name.Length>8 || name.Length<=0) { Console.WriteLine("Please re-enter file name"); } else { naam = name.ToCharArray(); for (int i = 0; i <8; i++) { Console.WriteLine(naam[i]); } } } }
Try this himanshu handsome: using System; class example { private void himanshu() { int starting = 10; int returned = docalculation(starting); Console.WriteLine(returned); } private int docalculation(int receiving) { int multip=receiving * 2; return multip; } static void Main() { example ex = new example(); ex.himanshu(); } }
Hi, I am new to programming and have just started learning C and C#. I am trying to print the following pattern using for loop in C# 1 23 456 78910 and so on... I have tried everything but its not giving the desired output. Can anyone help me with …
I have been trying to understand these methods so hard but have failed so far. Please, if you can, give me a example with the explanation. Thanks for your time. Following methods of StreamWriter class: 1)Read(); 2)Peek();
"Inheritance increases the functionality of a base class by adding additional features to its derived class." This is a direct statement from my text book's true/false question section. This is given as false and I know this is false but still I don't understand fully why. Any explanations would be …
The End.
andur92