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
officer say me - i am offered to a smoking , then what can you say
What does no cap mean?
Which language is not a true object oriented programming language?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
hi all..i want to know oops concepts clearly can any1 explain??
What is encapsulation selenium?
What is abstraction in oops with example?
What are benefits of oop?
How do you achieve runtime polymorphism?
What is variable example?
What is static modifier?
Can you inherit a private class?
What is a class and object?
What is object-oriented programming? Webopedia definition
What is oops with example?