864G
New member
- Joined
- Oct 1, 2020
- Messages
- 1
- Programming Experience
- Beginner
C#:
static void Main(string[] args)
{
Console.WriteLine("Get ready for a *MATH SHOWDOWN*");
Console.Write("If you would like a tutorial on how this works say \"1\", If you would like to go ahead and start say \"2\", And if you would like to see credits say '3'");
int openingprompt = Convert.ToInt32(Console.ReadLine());
if (openingprompt == 2)
{
FindProblem();
}
else if (openingprompt == 1)
{
}
Console.ReadLine();
}
static void RatioQuestion1()
{
Console.Write("A math club has 25 members, of which 11 are boys and the rest are girls. What is the ratio of males to all club members");
int ratioQ1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(ratioQ1);
Console.ReadLine();
}
static void FindProblem()
{
Console.Write("If you would like a ratio problem say '1'");
int Problemtype = Convert.ToInt32(Console.ReadLine());
if (Problemtype == 1)
{
FindRatioProblem();
}
else if (Problemtype == 2)
{
}
}
static void FindRatioProblem()
{
Console.WriteLine("ratio question coming up!");
Random rnd = new Random();
int problemnum = rnd.Next(1);
if (problemnum == 1)
{
RatioQuestion1();
}
}
Last edited by a moderator: