// if.cpp // test the if statement #include void main() { int result; cout << "Enter your exam marks \n"; cin >> result; if (result < 40) { cout << "Oops.. you failed" << endl; } else { cout << "You passed" << endl; } }