Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simpletools.h" // Include simpletools
- void hello(void); // Function prototype
- void goodbye(void);
- int main() // main function
- {
- for(int i = 1; i <= 10; i++)
- hello(); // Call hello function
- goodbye();
- }
- void hello(void) // Hello function
- {
- print("Hello from function!\n"); // Display hello message
- pause(500); // Pause 1/2 second
- }
- void goodbye(void)
- {
- print("Goodbye from function!\n");
- pause(500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement