public class CompSciTaster
public static void Main()
Random rng = new Random();
int rand = rng.Next(1,100);
Console.WriteLine("Guess the number from 1-100");
Console.WriteLine("It's "+rand);
guess = int.Parse(Console.ReadLine());
Console.WriteLine("Too high. You have used "+tries+" tries so far.");
Console.WriteLine("Too low. You have used "+tries+" tries so far.");
Console.WriteLine("The number was "+rand+". You got it in "+tries+" attempts!");