Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main()
- {
- int x, y;
- x = 0;
- y = -4;
- printf("Counting from 1 up to 10: \n ");
- do
- {
- x = x + 1;
- printf(" %d", x);
- } while (x < 10);
- printf("\nCounting from -5 down to -15:\n");
- do
- {
- y = y - 1;
- printf(" %d", y);
- } while (y > -15);
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement