hello everyone I need help making a maths quiz game which is based for 22-25 and it has to be educational. I have no idea where to start so some help would be awesome thanks :)
int a = Greenfoot.getRandomNumber(10);
int b = Greenfoot.getRandomNumber(10);
int result = a + b;
int answer = Integer.parseInt(Greenfoot.ask("How much is " + a + " + " + b + "?"));
if (result == answer)
{
//showing that the answer was correct
}
else
{
//showing that the answer was not correct
}