0
I want to create menu driven program
I want to create menu driven program where 1 is for personal details 2 is for marks 3 is for result 0 for exit Now problem is how to output something when user input 3 for result before entering marks Plz suggest
3 ответов
+ 1
How do you plan on storing the details, marks and result?
How is the menu set up?
There are many ways how you could set up something like this.
It would be best you show us what you've got so far.
+ 1
First, you need to have a container that will take up all the marks you enter. Could be a list.
Then, when 3 is chosen, you can check with if, if the marks list is empty, and if so, hand out an error message.
0
https://code.sololearn.com/cOzpCo3vHJrP/?ref=app
Like when user directly input 2 For result without entering marks ‚ how to handle that