I have just made a simple game of fizz buzz( its where numbers go up and if divisible by 3 it is called fizz and if divisible by 5 its called buzz, and if divisible by both its called fizz buzz) and it works, however, I need to press enter to get the next number which i don't want to do. I want it that the numbers go up automatically. Can you help me please? this is my code
static void Main(string[] args)
{
for (int i = 1; i <= 100; i++)
{
bool fizz = i % 3 == 0;
bool buzz = i % 5 == 0;
if (fizz && buzz)
Console.WriteLine("fizzbuzz");
else if (fizz)
Console.WriteLine("fizz");
else if (buzz)
Console.WriteLine("buzz");
else
Console.WriteLine(i);
Console.ReadLine();
}