in reply to Re: Repeat question (redo)
in thread Repeat question
this seems to be more of a guessing game, where the number is pre-defined. I wish to generate 2 random integers and create a sum e.g. '23-16=' whereby the larger integer is identified and placed on the left hand side. Only when the user inputs the right answer will a new sum be generated with two new integers. From my original code, a new sum is generated even if you get the answer wrong, how do I get the code to repeat the question answered incorrectly.? Do I need to store the random integers in variables or something.?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Repeat question (redo)
by pryrt (Abbot) on Nov 30, 2018 at 14:08 UTC | |
by Laurent_R (Canon) on Nov 30, 2018 at 18:52 UTC | |
by pryrt (Abbot) on Nov 30, 2018 at 19:00 UTC | |
by Laurent_R (Canon) on Nov 30, 2018 at 22:24 UTC | |
|
Re^3: Repeat question (redo)
by hippo (Archbishop) on Nov 30, 2018 at 14:08 UTC | |
by hchana (Acolyte) on Nov 30, 2018 at 14:28 UTC | |
by hippo (Archbishop) on Nov 30, 2018 at 15:18 UTC | |
by hchana (Acolyte) on Nov 30, 2018 at 15:38 UTC | |
by hchana (Acolyte) on Dec 11, 2018 at 11:27 UTC | |
by hippo (Archbishop) on Dec 11, 2018 at 12:05 UTC |