hi all,
i am new his forum i am having some doubt regarding console applications in c#.
in this using loops we can display the numbers what we want.
suppose
i want to display numbers 1 to 5 in c# using while loop then output is like this
1
2
3
4
5
but i want to display as 12345
please reply me.
thank u
i am new his forum i am having some doubt regarding console applications in c#.
in this using loops we can display the numbers what we want.
suppose
i want to display numbers 1 to 5 in c# using while loop then output is like this
1
2
3
4
5
but i want to display as 12345
please reply me.
thank u
Dear Sir or Ma'am,
Try using Console.Write instead of Console.WriteLine. That should allow your text to stay together.
Hope this helps!
Try using Console.Write instead of Console.WriteLine. That should allow your text to stay together.
Hope this helps!