0
Can anyone help me out in this program ? I can't understand what is wrong 😅
2 odpowiedzi
+ 4
Adi
1 - main should not be void if you return something, so here you have to write int main
2 - you can't pass float valve in switch case so take choice as int not float
3 - do while loop doesn't make sense here. So don't use that.
4 - if you use do while loop then don't check while (choice != 4) because it never will satisfy if I take choice as 2 because choice is not incrementing. Instead of doing choice != 4 use another variable and do increment inside loop.
5 - there should be space after case like case 1, case 2 not case1, case2
6 - there should be break in default case
https://code.sololearn.com/c5k6di9V58Ng/?ref=app
+ 1
Thank you very much