Answer:
using System;
class Program
{
public static void Main(string[] args)
{
Random rnd = new Random();
int tries = 0;
while (true)
{
tries++;
Console.Write("What do you think the total of two six-sided die will be? ");
int guess = int.Parse(Console.ReadLine());
int total = rnd.Next(1, 7) + rnd.Next(1, 7);
Console.Write($"The total was {total}. ");
if (total == guess)
{
Console.WriteLine($"Congratulations! It took you {tries} tries to guess successfully.");
break;
}
else
{
Console.WriteLine("Try again!");
}
}
}
}
Explanation:
Worst case you could be guessing forever...
Answer:
opcode
Explanation:
This stands for operation code. A microprocessor reads them from memory including any parameters, to perform very basic operations (e.g., move a byte of memory from one location to another).
Answer:
Press the big clear logo that says "BRAINLY"
<span>All Rights Reserved means that people can see your work but you still have complete control over your work. </span>