Vidyalelo
C# Programming · Q92

Control Flow Statements in C Sharp

Programming · C# Programming · question 92

Q92

What will be the output of the following C# code? static void Main(string[] args) float f; for (f = 0.1f; f <= 0.5; f += 1) Console.WriteLine( ++f ); Console.ReadLine();

A.
1.1
Answer
B.
0.1
C.
0.1 0.2 0.3 0.4 0.5
D.
None of the mentioned

Answer: Option A

Solution

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