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


Please Help Members By Posting Answers For Below Questions

State what is encapsulation and friend function?

699


What does enum stand for?

613


what are the realtime excercises in C++?

2333


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4240


What is encapsulation with example?

578






Which type does string inherit from?

616


what is difference between class template and template class?

2157


What is stream in oop?

837


What is abstraction in oops with example?

774


Which is not an object oriented programming language?

539


What is a function in oop?

630


What is the purpose of polymorphism?

678


What is meant by oops concept?

611


Can destructor be overloaded?

597


Get me an image implementation program.

1557