#include #include using namespace std; // function definition, takes two parameters void countup(int start, int end) { // for loop syntax, uses the parameter values for (int i = start; i < end; i++) { cout << i << endl; } } int main() { // local variable in the scope of main int x = 19; cout << "hi" << endl; // function call, passing in values countup(2, x); cout << "bye" << endl; // counting while loop (can do the same thing with a for loop) int i = 0; while (i < x) { cout << i << endl; i++; } system("pause"); }