public static void Main()
Console.WriteLine("How many time do you want to roll the dice?");
string input = Console.ReadLine();
if (decimal.TryParse(input, out number))
{Random r = new Random();
decimal count1= 0, count2 = 0, count3= 0, count4= 0, count5= 0, count6= 0, count7= 0, count8= 0, count9= 0, count10= 0, count11= 0;
for (decimal i =1; i <=number;i++)
{decimal roll = r.Next(2, 13);
Console.Write(roll + " ");
decimal per1 = count1/number*100M;
decimal per2 = count2/number*100M;
decimal per3 = count3/number*100M;
decimal per4 = count4/number*100M;
decimal per5 = count5/number*100M;
decimal per6 = count6/number*100M;
decimal per7 = count7/number*100M;
decimal per8 = count8/number*100M;
decimal per9 = count9/number*100M;
decimal per10 = count10/number*100M;
decimal per11 = count11/number*100M;
{ Console.WriteLine(per1.ToString("You rolled a 2 0% of the time."));
{ Console.Write("You rolled a 2 ");
Console.Write(per1.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per2.ToString("You rolled a 3 0% of the time."));
{ Console.Write("You rolled a 3 ");
Console.Write(per2.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per3.ToString("You rolled a 4 0% of the time."));
{ Console.Write("You rolled a 4 ");
Console.Write(per3.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per4.ToString("You rolled a 5 0% of the time."));
{ Console.Write("You rolled a 5 ");
Console.Write(per4.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per5.ToString("You rolled a 6 0% of the time."));
{ Console.Write("You rolled a 6 ");
Console.Write(per5.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per6.ToString("You rolled a 7 0% of the time."));
{ Console.Write("You rolled a 7 ");
Console.Write(per6.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per7.ToString("You rolled a 8 0% of the time."));
{ Console.Write("You rolled a 8 ");
Console.Write(per7.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per8.ToString("You rolled a 9 0% of the time."));
{ Console.Write("You rolled a 9 ");
Console.Write(per8.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per9.ToString("You rolled a 10 0% of the time."));
{ Console.Write("You rolled a 10 ");
Console.Write(per9.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per10.ToString("You rolled a 11 0% of the time."));
{ Console.Write("You rolled a 11 ");
Console.Write(per10.ToString("##.##"));
Console.WriteLine("% of the time.");
{ Console.WriteLine(per11.ToString("You rolled a 12 0% of the time."));
{ Console.Write("You rolled a 12 ");
Console.Write(per11.ToString("##.##"));
Console.WriteLine("% of the time.");
Console.WriteLine("Would you like to roll again? y/n");
string choice = Console.ReadLine();
if (choice == "y" || choice == "y")