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
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is an interface in oop?
What is the highest level of cohesion?
What is data binding in oops?
What is the benefit of oop?
Why do pointers exist?
How is polymorphism achieved?
What are two types of polymorphism?
What do you mean by abstraction?
Why is there no multiple inheritance?
which feature are not hold visual basic of oop?
is there any choice in opting subjects like 4 out of 7
What is the difference between static polymorphism and dynamic polymorphism?
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.
Can we have inheritance without polymorphism?