/* May24.cpp CIS 150 Dave Klick 5/24/2005 Our first C++ program. */ #include using std::cout; // used for output using std::cin; // used for input using std::endl; int main(void) { double num1 = 0; double num2 = 0; double sum = 0; cout << "Hello, world!\n"; cout << "Hello, world!" << endl; cout << "Please enter two integers: "; cin >> num1; cin >> num2; cout << "You entered " << num1 << " and " << num2 << endl; sum = num1 + num2; cout << "The sum is " << sum << endl; // no error, so return 0 return 0; }