Hi I recently wrote this and made a randomized math quiz with Visual Studio in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Math_Side_Project
{
class MainClass
{
static void Main(string[] args) //This is a method called "Main". It's called when the program starts!
{
Random numberGenerator = new Random ();
int num01 = numberGenerator.Next(1,12);
int num02 = numberGenerator.Next(1,12);
Console.WriteLine("It's Quiz Time!\n");
Console.WriteLine("What is " + num01 + " times " + num02 + "?");
int answer = Convert.ToInt32(Console.ReadLine());
if (answer == num01 * num02){
Console.WriteLine("\nExellent! Your answer is correct.");
} else {
int responseIndex = numberGenerator.Next(1, 4);
switch (responseIndex) {
case 1:
Console.WriteLine("\nAre you even trying?");
break;
case 2:
Console.WriteLine("\nNice try.");
break;
case 3:
Console.WriteLine("\nYou are sooo close!");
break;
default:
Console.WriteLine("\nYou can do better then that");
break;
}
}
Console.ReadKey();
}
}
}
I showed this to my friends and they liked it so I was wondering if I could possibly change the text font or at least make it look neater. Or do I have to use JS or Unity to do that?
PS: Sorry if this is in the wrong section.