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
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is the renewal class?
What is a class and object?
What is class and object with example?
What is ambiguity in inheritance?
What are objects in oop?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What are the 4 pillars of oop?
what is difference between class template and template class?
Can we create object of interface?
What is variable example?
What is oops and why we use oops?
Why is polymorphism used?
What is advantage of inheritance?
Why is polymorphism needed?