How do I make the numbers appear on the console in C language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I make the numbers appear on the console in C language?

How do I make the numbers appear on the console in C language? My code https://code.sololearn.com/cfdhRO2Pqefk/?ref=app

25th Jul 2020, 12:07 PM
Raihan
Raihan - avatar
3 Answers
+ 5
Use correct format specifier "%c" is for character , if you want to display a integer than us "%d" or use "%f" for float in your case Here is the fix👇 https://code.sololearn.com/cqCXimbLTUK2/?ref=app
25th Jul 2020, 12:10 PM
Arsenic
Arsenic - avatar
25th Jul 2020, 12:11 PM
Arsenic
Arsenic - avatar
+ 1
Thank you very much !
25th Jul 2020, 12:16 PM
Raihan
Raihan - avatar