Advertisement
Guest User

Untitled

a guest
Sep 21st, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include "simpletools.h" // Include simpletools
  2.  
  3. void counter(int startVal, int endVal, int incVal); // Function prototype
  4.  
  5. int startVal;
  6. int endVal;
  7. int incVal;
  8. int i;
  9.  
  10. int main() // main function
  11. {
  12. for(i = startVal; i <= endVal; incVal)
  13. {
  14. counter(0, 8, 2);
  15. }
  16. }
  17.  
  18. void counter(int startVal, int endVal, int incVal) // value function
  19. {
  20. print("Value = %d\n", i);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement