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
what type of questions
What is object-oriented programming? Webopedia definition
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Can we define a class within the interface?
What does and I oop mean?
Why is destructor used?
Is oop better than procedural?
Can abstract class have normal methods?
What are the features of oop?
What polymorphism means?
What does I oop mean?
What is oops and why we use oops?
What does and I oop mean in text?
Is enum a class?
What makes a language oop?