3
Answers

While Loop True

harish reddy

harish reddy

7y
139
1
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)