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
What do you mean by variable?
Can destructor be overloaded?
Why is polymorphism needed?
What is oops and why we use oops?
Is enum a class?
Where is pseudocode used?
What does <> mean pseudocode?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is pure oop?
What is coupling in oops?
Which language is not a true object oriented programming language?
What is for loop and its syntax?
what are the ways in which a constructors can be called?
What is object in oop?
What is inheritance and how many types of inheritance?