0% found this document useful (0 votes)
4 views1 page

For Loop Programming Exercises

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

For Loop Programming Exercises

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Practical – 9

Aim :- Programming exercises on for statement.

Print Numbers from 1 to 10


#include <stdio.h>
int main() {
int i;
for(i = 1; i <= 10; i++) {
printf("%d\n", i);
}
return 0;
}

Sample Output
1
2
3
4
5
6
7
8
9
10

You might also like