-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
35 lines (26 loc) · 758 Bytes
/
Program.cs
File metadata and controls
35 lines (26 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// See https://aka.ms/new-console-template for more information
// int numbers = 10;
// while (numbers >= 1)
// {
// Console.WriteLine(numbers);
// for (int i = 0; i <= 20; i++)
// {
// double result = Math.Pow(2,i);
// Console.WriteLine(result);
// i++;
// // }
// Random numberGen = new Random();
// int roll1 = 0;
// int roll2 = 0;
// int attempts = 0;
// Console.Write("press enter to roll ");
// while (roll1 != 6 || roll2 != 6)
// {
// Console.ReadKey();
// roll1 = numberGen.Next(1,7);
// roll2 = numberGen.Next(1,7);
// attempts++;
// Console.WriteLine($"roll 1 = {roll1}");
// Console.WriteLine($"roll 2 = {roll2}");
// }
// Console.WriteLine($"it took {attempts} attempts to roll number of the same kind");