Unlimited Maths!(updated)
//Heres some tips before copy and paste:
//Press cntrl and A to copy everything
//Give credit if you use it in a video
//You can change the code
//Check brackeys on YouTube and watch the 1st c# tutorial to use the code in Visual Studio Code or
//Else it won't work
//NOTE: The points system doesen't work currently and we are trying to fix it as soon as possible.
//For now,just ignore that
//HERES THE CODE:
//-----------------------------------------------
using System;
namespace My_Awesome_Program
{
class Program
{
static void Main(string[] args)
{
Console.Title = "Unlimited Maths!";
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WindowHeight = 40;
Console.WriteLine("Made By GostGK!Check GostGK: Instagram: @gostgkyt TikTok: @fortnitelegitgiveaways Gmail: kgiotakos@gmail.com");
Console.WriteLine("Here's a quick guide:\n");
Console.WriteLine("Welcome To Unlimited Maths!");
Console.WriteLine("The goal is to finish all 50 questions!");
Console.WriteLine("1 Correct answer = +10 points!");
Console.WriteLine("1 Wrong answer = -10 points!");
Console.WriteLine("Can you beat you record?");
Console.WriteLine("Good Luck!\n");
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
UnlimitedMaths();
Console.WriteLine("You finished the Game!Good Job!");
Console.WriteLine("Made By GostGK!Check GostGK: Instagram: @gostgkyt TikTok: @fortnitelegitgiveaways Gmail: kgiotakos@gmail.com");
Console.ReadKey();
}
static void UnlimitedMaths()
{
Random randomMathNumber1 = new Random();
int randomNum1 = randomMathNumber1.Next(1, 10);
Random randomMathNumber2 = new Random();
int randomNum2 = randomMathNumber2.Next(1, 10);
Random randomMathOparation = new Random();
int randomOparation = randomMathOparation.Next(1, 4);
int CorrectAnswer = 0;
int UserPoints = 0;
string OparationName = "";
if ( randomOparation == 1 )
{
CorrectAnswer = randomNum1 * randomNum2;
OparationName = " Multiplyed by ";
}
else if ( randomOparation == 2 )
{
CorrectAnswer = randomNum1 / randomNum2;
OparationName = " Devided by ";
}
else if ( randomOparation == 3 )
{
CorrectAnswer = randomNum1 + randomNum2;
OparationName = " Plus ";
}
else if ( randomOparation == 4 )
{
CorrectAnswer = randomNum1 - randomNum2;
OparationName = " Minus ";
}
Console.WriteLine("What's " + randomNum1 + OparationName + randomNum2 + " ?");
int UserAnswer = Convert.ToInt32 (Console.ReadLine());
if (UserAnswer == CorrectAnswer)
{
UserPoints = UserPoints + 10;
Console.WriteLine("Correct!Current Points: " + UserPoints);
}
else
{
Console.WriteLine("Wrong!Current Points: " + UserPoints);
Console.WriteLine("The correct answer was " + CorrectAnswer);
UserPoints = UserPoints - 10;
}
}
}
}
Σχόλια
Δημοσίευση σχολίου