// demonstrates function usage, add1 - increments the argument // Michael L. Collard // 10/6/99 #include int add1(int i) { return i + 1; } int main() { // get the number cout << "Enter a number: "; int n; cin >> n; // find the number plus 1 int newn = add1(n); // print out the number plus 1 cout << newn << '\n'; }