using System;
using System.Runtime.InteropServices;
namespace Guessing_game
{
internal class Program
{
static void Main(string[] args)
{
Random rnd = new Random();
int num = rnd.Next(1, 100);
Console.WriteLine(num);
Console.WriteLine("Guess the number");
string Guess = Console.ReadLine();
int IntGuess = int.Parse(Guess);
Console.WriteLine(IntGuess);
int on = 0;
while (on < 1)
{
if (num > IntGuess)
{
Console.WriteLine("Higher");
}
if (num < IntGuess)
{
Console.WriteLine("Lower");
}
if (num == IntGuess)
{
Console.WriteLine("Good job");
}
}
}
}
}
using System;
using System.Runtime.InteropServices;
namespace Guessing_game
{
internal class Program
{
static void Main(string[] args)
{
Random rnd = new Random();
int num = rnd.Next(1, 100);
Console.WriteLine(num);
Console.WriteLine("Guess the number");
string Guess = Console.ReadLine();
int IntGuess = int.Parse(Guess);
Console.WriteLine(IntGuess);
int on = 0;
while (on < 1)
{
if (num > IntGuess)
{
Console.WriteLine("Higher");
}
if (num < IntGuess)
{
Console.WriteLine("Lower");
}
if (num == IntGuess)
{
Console.WriteLine("Good job");
}
}
}
}
}