Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simpletools.h" // Include simpletools
- int main() // main function
- {
- for(int n = 0; n < 200; n += 5) // Count to ten
- {
- pause(500); // 0.5 s between reps
- printf("n = %d\n", n); // Display name & value of n
- }
- for(int n = 200; n >= 0; n -=10)
- {
- pause(500);
- printf("n = %d\n", n);
- }
- printf("All done!"); // Display all done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement