how to print 1 to 20 | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

how to print 1 to 20

how to print 1 to 20 using while loop in c program?

28th Mar 2018, 6:00 PM
Jordan
Jordan  - avatar
1 ответ
+ 2
int x = 1; while (x <= 20) { printf("%d", x); x++; } (Obviously add the main function and include the io library)
28th Mar 2018, 6:06 PM
TurtleShell
TurtleShell - avatar