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 destructor oops?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is encapsulation process?
Is oop better than procedural?
What is encapsulation in oops?
What are classes oop?
What are objects in oop?
What is the real life example of polymorphism?
What is cohesion in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What are the advantages of polymorphism?
State what is encapsulation and friend function?
hi all..i want to know oops concepts clearly can any1 explain??
when to use 'mutable' keyword and when to use 'const cast' in c++
What is the difference between static polymorphism and dynamic polymorphism?