It looks like you're new here. If you want to get involved, click one of these buttons!
So idk where exactly to put this, but here is my code for this episode. If there is a spesfic spot, please let me know!
using System;
namespace Tutorial_in_C_
{
class Program
{
static void Main(string[] args)
{
Console.Write("What is 9 * 9 + 5?");
double num01 = Convert.ToInt32(Console.ReadLine());
if (num01 == 86) {
Console.WriteLine("Correct!");
} else {
Console.WriteLine("Incorrect :(. The correct answer is 86. 9*9 is 81, + 5 is 86.");
}
Console.Write("What is (4+4) + (4*3)?");
double num02 = Convert.ToInt32(Console.ReadLine());
if (num02 == 20) {
Console.WriteLine("Correct!!");
} else {
Console.WriteLine("Incorrect. The answer is 20. First you do 4+4, wich is 8, then 4*3, wich is 12, then add 8 and 12 to get 20.");
}
Console.Write("What is (4+4) * (4+4) / 2?");
double num03 = Convert.ToInt32(Console.ReadLine());
if (num03 == 32) {
Console.WriteLine("Correct!");
} else {
Console.WriteLine("Incorrect. The answer is 32. First is 4+4, wich is 8, then 4+4 again, wich is 8, then 8*8, wich is 64, now divide by 2 and get 32");
}
Console.ReadKey();
}
}
}