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
State what is encapsulation and friend function?
What does enum stand for?
what are the realtime excercises in C++?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is encapsulation with example?
Which type does string inherit from?
what is difference between class template and template class?
What is stream in oop?
What is abstraction in oops with example?
Which is not an object oriented programming language?
What is a function in oop?
What is the purpose of polymorphism?
What is meant by oops concept?
Can destructor be overloaded?
Get me an image implementation program.