Vidyalelo
C# Programming · Q89

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 89

Q89

What will be the output of the following C# code? static void Main(string[] args) const int a = 5; const int b = 6; for (int i = 1; i <= 5; i++) a = a * i; b = b * i; Console.WriteLine(a); Console.WriteLine(b); Console.ReadLine();

A.
600, 720
B.
Compile time error
Answer
C.
25, 30
D.
5, 6

Answer: Option B

Solution

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