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


Please Help Members By Posting Answers For Below Questions

What is encapsulation with real life example?

794


What is basic concept of oop?

910


What is the oops and benefits of oops programming?

750


Is abstract thinking intelligence?

806


What is polymorphism programming?

863


What is abstraction encapsulation?

875


What is oops in simple words?

822


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.

2840


Is react oop?

830


write knight tour problem which is present in datastructure

2394


How does polymorphism work?

882


What is coupling in oop?

786


What is coupling in oops?

833


What is destructor give example?

819


Can an interface inherit a class?

793