0
how i will make this code short
7 ответов
+ 5
Aman Prasad
First write correct code. Semicolon break the statement so you should not use after if statement.
+ 4
Aman Prasad
Use curly brackets {} after if else condition if there is multiple statement inside that condition.
Here is the right way to write code.
1 - first take input together
2 - do calculation together
3 - print all values together
https://code.sololearn.com/cA8PnkTA53Em/?ref=app
+ 2
Aman Prasad
Not break use return with proper message.
+ 1
ok got it thanks a lot
+ 1
Aman Prasad
Check code again. I have updated. Now you can understand very clear.
0
please guide me how i can correct it
0
thanks! here i want to use break when i get input greater than 150