Vidyalelo
C# Programming · Q57

Control Flow Statements in C Sharp

Programming · C# Programming · question 57

Q57

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

A.
0.1
B.
1.1
Answer
C.
0.1 0.2 0.3 0.4 0.5
D.
No output

Answer: Option B

Solution

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