Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this program counts from 1-10 using a loop
- #include <stdio.h>
- int main() {
- int num;
- for (num = 1; num <= 10; num++) {
- printf("%d\n", num);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement