+ 3
https://code.sololearn.com/ch9BxwUOAXOK/?ref=app
Please try to solve my query..
4 Respostas
+ 5
Janvi Desai There were 2 problems in the code :-
1) value of "c" was initialised to 1 which lead to an error of 1 in the answer.
2) you are using "%c" format specifier in scanf which is taking white spaces in the input instead of desired character "b/g" { One way around the problem is to put a blank space before the the format specifier in the format string }
Here is the fixed version of the code👇
https://code.sololearn.com/cG9zRX9KApV1/?ref=app
+ 4
Pls post ur link correctly
+ 4
Janvi Desai we can't acess links if they are in question title.
Put them in discription next time. Let me do it for you this time 👇
https://code.sololearn.com/ch9BxwUOAXOK/?ref=app.
+ 3
Thank you so much 🥰🙏