Input:
enter the value:1234
output:
1
2
3
4
write a program to get above output.....
Answer Posted / chandan
public static void Main()
{
string str = Console.ReadLine();
foreach (var obj in str)
{
Console.Write(obj.ToString());
Console.WriteLine();
}
Console.ReadLine();
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation with real life example?
What is basic concept of oop?
What is the oops and benefits of oops programming?
Is abstract thinking intelligence?
What is polymorphism programming?
What is abstraction encapsulation?
What is oops in simple words?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
Is react oop?
write knight tour problem which is present in datastructure
How does polymorphism work?
What is coupling in oop?
What is coupling in oops?
What is destructor give example?
Can an interface inherit a class?