Advertisement
Guest User

Attempt 1

a guest
Sep 14th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #include "simpletools.h" // Include simpletools
  2.  
  3. void hello(void); // Function prototype
  4. void goodbye(void);
  5.  
  6. int main() // main function
  7. {
  8. for(int i = 1; i <= 10; i++)
  9. hello(); // Call hello function
  10. goodbye();
  11. }
  12.  
  13. void hello(void) // Hello function
  14. {
  15. print("Hello from function!\n"); // Display hello message
  16. pause(500); // Pause 1/2 second
  17. }
  18.  
  19. void goodbye(void)
  20. {
  21. print("Goodbye from function!\n");
  22. pause(500);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement