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 class and object with example?
What is polymorphism give a real life example?
What is inheritance in oop?
What is the point of polymorphism?
What is destructor oops?
Can enum be null?
What is polymorphism and types?
Why is abstraction used?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is class and object in oops?
What is difference between oop and pop?
What is overloading in oops?
What is overriding vs overloading?
What is the highest level of cohesion?
What is the problem with multiple inheritance?