22nd Oct 2018, 4:54 PM
Rameshwar Shivshette
Rameshwar Shivshette - avatar
5 odpowiedzi
+ 6
https://code.sololearn.com/cqMwyzqrQA9F/?ref=app
23rd Oct 2018, 6:52 AM
Preetha
Preetha - avatar
+ 4
program compile but not running
23rd Oct 2018, 2:52 AM
Rameshwar Shivshette
Rameshwar Shivshette - avatar
+ 1
There are a lot of mistakes. First you changed the variable name of no_of_sticks f.e. no_of_stick or no_of_strikes. When using else you have no condition or must use if or else if. If needs brackets around the conditions. I tried to correct your mistakes that the code is running but I don't know whether it is logical correct.
22nd Oct 2018, 7:50 PM
Mirko Klotzsche
Mirko Klotzsche - avatar
+ 1
The community wouldn't write your program. Compare your code and read my comment above and you can solve a lot of errors. When you have done this please specify whats actually the problem with YOUR code.
23rd Oct 2018, 6:09 AM
Mirko Klotzsche
Mirko Klotzsche - avatar
22nd Oct 2018, 7:51 PM
Mirko Klotzsche
Mirko Klotzsche - avatar