[Solved] Why is my input not working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

[Solved] Why is my input not working?

G'day, line 16 should take an input which gets used as the lower limit of the output. If I comment out line16 then the limit works. What have I done wrong? https://code.sololearn.com/cuoKSk3zzx1K/?ref=app

9th Feb 2022, 10:10 PM
HungryTradie
HungryTradie - avatar
1 Answer
+ 3
Is a \n buffer issue with scanf. Put a space before %d and try it.
9th Feb 2022, 10:22 PM
William Owens
William Owens - avatar