Anyone tell why this code gives no output. | SoloLearn: Learn to code for FREE!

+10

Anyone tell why this code gives no output.

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

c

4/9/2020 4:21:29 PM

SKR

4 Answers

New Answer

+6

Probably because you printed c as char. c is assigned to the result of atoi which returns an integer so you must print it as a number in order to receive a decent result. So use %hhd instead of %c and it should work. Here's my corrected version that seems to work fine: https://code.sololearn.com/cH0sr5GvnqtR/?ref=app

+7

Thanks Aaron Eberhardt

+4

Yeah...thank you..

0

Bruh try copying the code exactly. If it doesn't result in a fix try refreshing your Chrome if you are using chrome