Vidyalelo
C# Programming · Q79

Control Flow Statements in C Sharp

Programming · C# Programming · question 79

Q79

What will be the output of the following C# code? static void Main(string[] args) int n, r; n = Convert.ToInt32(Console.ReadLine()); while (n > 0) r = n % 10; n = n / 10; Console.WriteLine(+r); Console.ReadLine(); for n = 5432.

A.
3245
B.
2354
C.
2345
Answer
D.
5423

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board