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

Can enum be null?

587


Why interface is used?

551


Can destructor be overloaded?

597


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1662


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

3427






What is encapsulation in oop?

604


any one please tell me the purpose of operator overloading

1965


Which language is pure oop?

549


Why oops is important?

610


What makes a language oop?

596


How do you define a class in oop?

628


What is multilevel inheritance explain with example?

626


How does polymorphism work?

635


What is encapsulation process?

578


Can bst contain duplicates?

668