Image
Nothing fancy. It asks whether you want to generate a number with 7, 8, or 9 digits. If you don't pick 7, 8, or 9, it generates an error and asks for you to try again. Once you pick one of the numbers, it gives you a random number that is x many digits. After that, it asks you if you want another one. If you do, it will repeat the process. If not, it will close out of the console. If you have any suggestions on some other ideas I could try and create I would love to hear them.
Edit: You can now find the code here:
Feel free to critique my code
.
Edit 2: I'm also having trouble with the program being case sensitive with string inputs. I was wondering if anyone could help me with that. (Hence why on line 76 I write "no" and "No")
Nothing fancy. It asks whether you want to generate a number with 7, 8, or 9 digits. If you don't pick 7, 8, or 9, it generates an error and asks for you to try again. Once you pick one of the numbers, it gives you a random number that is x many digits. After that, it asks you if you want another one. If you do, it will repeat the process. If not, it will close out of the console. If you have any suggestions on some other ideas I could try and create I would love to hear them.
Edit: You can now find the code here:
Feel free to critique my code
Edit 2: I'm also having trouble with the program being case sensitive with string inputs. I was wondering if anyone could help me with that. (Hence why on line 76 I write "no" and "No")
Attachments
Last edited:
