Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simpletools.h" // Include simpletools
- void counter(int startVal, int endVal, int incVal); // Function prototype
- int startVal;
- int endVal;
- int incVal;
- int i;
- int main() // main function
- {
- for(i = startVal; i <= endVal; incVal)
- {
- counter(0, 8, 2);
- }
- }
- void counter(int startVal, int endVal, int incVal) // value function
- {
- print("Value = %d\n", i);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement