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 are the 3 pillars of oop?
#include
What is polymorphism programming?
What is multilevel inheritance?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Is abstract thinking intelligence?
can we make game by using c
when to use 'mutable' keyword and when to use 'const cast' in c++
Can abstract class have normal methods?
What is cohesion in oop?
What is the point of polymorphism?
What is polymorphism in oops with example?
Where is pseudocode used?
Can a varargs method be overloaded?
is there any choice in opting subjects like 4 out of 7