+ 1
Do you have any simplest for of this program
for simplify the program you can use any language like C, C++ or Java https://code.sololearn.com/c6jpZD7MyOyb/?ref=app
1 Réponse
+ 1
So you can use Switch case and default. Here one example:
https://code.sololearn.com/c2sUc6Te2F0I
Note: Use default for error handling. If some user inserted a invalid value for your code. In the default part insert a error message or a procediment to correct the predicted error.