Console displaying nothing?

So for some reason my old code is showing up but with this recent program NOTHING is appearing on the console:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace Toms_dice_2

{

class Program

{

static void Main(string[] args)

{

Random rng = new Random();

int roll = 0;

int noa = 0;

while (roll != 6) ;

{

roll = rng.Next(1, 7);

Console.WriteLine(roll);

noa++;

}

Console.WriteLine(“Tom took ” + noa + “attemps to roll a Six!”);

Console.ReadKey();

}

}

}

Anyone know whats missing?…

submitted by /u/Kaibur02
[link] [comments]

Leave a Reply