Skip to content
Bram Moreinis edited this page Mar 26, 2021 · 2 revisions

Multiplication

Each Problem

  1. Print 2 random integers, X & Y, each between 3 and 9, as a soluble equation: x * y = ??
  2. Receive manual input for solution, say "Correct!" if match, "Incorrect!" if not.
  3. Embed code and feedback in a while loop that continues until the input matches solution.

Problem Loop

  1. Embed all code in a loop to ask Q questions.
  2. Prompt for Q so the user can say how many questions to ask.

With Functions

  1. Create a main function for the loop and variables.
  2. Move the input and feedback portion into a function
  3. Create an "after loop" function that reports on number of mistakes.

Add Features

Clone this wiki locally