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 is new keyword in oops?
What are the 3 pillars of oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is a class and object?
Give two or more real cenario of virtual function and vertual object
Why it is called runtime polymorphism?
What is oops in simple words?
What is difference between abstraction and encapsulation?
What is polymorphism oop?
What is for loop and its syntax?
write a C++ program for booking using constructor and destructor.
What is oops and why we use oops?
What is meant by multiple inheritance?
Which type does string inherit from?
Why do pointers exist?