Input:
enter the value:1234
output:
1
2
3
4
write a program to get above output.....
Answer Posted / bala
static void Main(string[] args)
{
string value = Console.ReadLine();
foreach (var num in value)
{
Console.Write(num + " ");
}
Console.Read();
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is multilevel inheritance in oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is difference between pop and oop?
Can a varargs method be overloaded?
What is object in oops?
Advantage and disadvantage of routing in telecom sector
What is new keyword in oops?
What is inheritance write a program to show use of inheritance?
What is abstract class in oops?
How to call a non virtual function in the derived class by using base class pointer
What makes a language oop?
Why is object oriented programming so hard?
What is basic concept of oop?
What are the benefits of oop?
What is polymorphism what are the different types of polymorphism?