What will be the output of the following C# code? [code] static void Main(string[] args) { float f; for (f = 0.1f; f <=

Trần Vũ

New member
What will be the output of the following C# code?
Code:
  static void Main(string[] args)
  {
      float f;
      for (f = 0.1f; f <= 0.5; f += 1)
      Console.WriteLine( ++f );
      Console.ReadLine();
  }
A.
Code:
 1.1
B. 0.1
C. 0.1 0.2 0.3 0.4 0.5
D. None of the mentioned
 

Tìm kiếm

Back
Top