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