Why Entering 1-10 Will Realize 1 2 3 4 5 6 7 8 910. I know it's caused by%2d, but I don't know why this is the case. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why Entering 1-10 Will Realize 1 2 3 4 5 6 7 8 910. I know it's caused by%2d, but I don't know why this is the case.

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

9th Mar 2020, 4:29 AM
Por_Libereco
Por_Libereco - avatar
3 Réponses
0
Read about format specifiers and options here 👇 http://www.cplusplus.com/reference/cstdio/printf/
9th Mar 2020, 4:35 AM
Ipang
+ 1
Thank you.
9th Mar 2020, 4:40 AM
Por_Libereco
Por_Libereco - avatar
0
No problem buddy 👌
9th Mar 2020, 4:41 AM
Ipang