cout << "Enter the second number : ";
cout << "Enter the second number : ";
cin >> second;
result = add(first, second);
cout << "The result is : " << result << endl;
}
Note: endl sets the cursor to the start of the next line on the screen.
Previous slide
Next slide
Back to first slide
View graphic version