// Game.cs (c) Kari Laitinen // www.naturalprogramming.com /* In 2022, it was possible to run this program by first installing the free Visual Studio Community edition, and then opening the Developer Command Prompt for VS 2022. The Developer Command Prompt was easily found by searching it on Windows. In the command prompt window, the following commands could be used to compile and run: csc Game.cs Game In the command prompt window cd commands had to be given first to go to the right directory (folder). As the program was in drive D: in folder D:\programs\csfiles2 I had to give the following commands to enter the folder: D: cd programs cd csfiles2 */ using System ; class Game { static void Main() { int integer_from_keyboard ; int one_larger_integer ; Console.Write( "\n This program is a computer game. Please, type in " + "\n an integer in the range 1 ... 2147483646 : " ) ; integer_from_keyboard = Convert.ToInt32( Console.ReadLine() ) ; one_larger_integer = integer_from_keyboard + 1 ; Console.Write( "\n You typed in " + integer_from_keyboard + "." + "\n My number is " + one_larger_integer + "." + "\n Sorry, you lost. I won. The game is over.\n") ; } }