Input:
enter the value:1234
output:
1
2
3
4
write a program to get above output.....

Answer Posted / mahesh.b.p.c

static void Main(string[] args)
{
string value= Console.ReadLine();
foreach(object num in value)
{
Console.WriteLine(num);
Console.WriteLine();
}
Console.Read();

}

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is persistence in oop?

887


What is byval and byref? What are differences between them?

1966


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3135


Explain the concepts involved in Object Oriented programming.

895


Why is oop useful?

825


What do you mean by overloading?

819


Plese get me a perfect C++ program for railway/airway reservation with all details.

3678


How do you explain polymorphism?

823


Get me an image implementation program.

1756


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1892


What is encapsulation with real life example?

802


What is this pointer in oop?

814


Where is pseudocode used?

764


what are the different types of qualifier in java?

2039


explain sub-type and sub class? atleast u have differ it into 4 points?

2059