Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simpletools.h" // Include simpletools
- int main() // main function
- {
- pause(1000);
- int a = 0;
- int b = 0;
- int c = 0;
- pause(200);
- printf("a = %d, b = %d, c = %d\n", a, b, c);
- while(c < 10)
- {
- a = a + 1;
- if(a == 10)
- {
- a = 0;
- b = b + 1;
- }
- if(b == 10)
- {
- b = 0;
- c = c + 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement