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?
Nakhia SharmaPosted Dec 5, 2017, 4:59 AM
Ramesh PalanivelPosted Dec 5, 2017, 3:30 AM
Ankit SharmaPosted Dec 5, 2017, 2:26 AM