harish reddy

harish reddy

  • NA
  • 162
  • 33.9k

While Loop True

Dec 5 2017 2:21 AM
int number = int.Parse(Console.ReadLine());
while (true)
{
Console.WriteLine("Loop Continues");
number = (number + 100000000);
Console.WriteLine(number);
}
 
 
this program continues for ever. I assume when it reaches maximum value of int , it should stop. But not stopping.why? 

Answers (3)