Input:
enter the value:1234
output:
1
2
3
4
write a program to get above output.....
Answer Posted / chandan
public static void Main()
{
string str = Console.ReadLine();
foreach (var obj in str)
{
Console.Write(obj.ToString());
Console.WriteLine();
}
Console.ReadLine();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a program to sort the number with different sorts in one program ??
What is overloading in oops?
Get me a number puzzle game-program
Why polymorphism is used in oops?
Why is oop useful?
What is object and example?
Why oops is important?
What is the difference between static polymorphism and dynamic polymorphism?
What is an example of genetic polymorphism?
What is the benefit of oop?
What is a class oop?
What is the difference between procedural programming and oops?
What are properties in oop?
What is a superclass in oop?
What is class encapsulation?