+ 3

https://code.sololearn.com/ch9BxwUOAXOK/?ref=app

Please try to solve my query..

13th Nov 2020, 6:14 AM
Janvi Desai
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
13th Nov 2020, 6:57 AM
Arsenic
Arsenic - avatar
+ 4
Pls post ur link correctly
13th Nov 2020, 6:18 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 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.
13th Nov 2020, 6:29 AM
Arsenic
Arsenic - avatar
+ 3
Thank you so much 🥰🙏
13th Nov 2020, 7:00 AM
Janvi Desai