Today’s unnecessary program:
var random = new Random();
var outputNum = random.Next(1, 1001);
Console.WriteLine(outputNum);
while (outputNum > 1)
{
if (outputNum % 2 != 0)
{
outputNum++;
Console.WriteLine(outputNum);
}
outputNum = outputNum / 2;
Console.WriteLine(outputNum);
}