What is the output for following code?
public static void Main()
{
Console.WriteLine(Math.Round(0.5));
Console.WriteLine(Math.Round(2.5));
Console.WriteLine(Math.Round(1.5));

}

 Posted by Manicse on 10/7/2016 | Category: C# Interview questions | Views: 6121 | Points: 40
Select from following answers:
  1. 0,0,0
  2. 0,2,1
  3. 0,2,2
  4. 0,3,2
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response