Advertisement
valve2

this program counts from 1-10 using a loop

Jan 19th, 2023 (edited)
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | Source Code | 0 0
  1. //this program counts from 1-10 using a loop
  2. #include <stdio.h>
  3.  
  4. int main() {
  5.     int num;
  6.     for (num = 1; num <= 10; num++) {
  7.         printf("%d\n", num);
  8.     }
  9.     return 0;
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement