#include #include using namespace std; int main(int argc, char **argv) { int num1, num2; cout << "Type two numbers: "; cin >> num1 >> num2; if ( cin.fail() ) { cout << "You didn't type two numbers!" << endl; } else { cout << "You typed: " << num1 << " " << num2 << endl; } return EXIT_SUCCESS; }