
// if_else.cpp
// test the if else statement
#include <iostream.h>

void main() {

	int result;

	cout << "Enter your exam marks \n";

	cin >> result;

   if (result < 40) {
	   cout<< "Oops.. you failed" << endl;
   }
   else if (result == 40) {
     cout << "You just managed to pass" << endl;
   }
   else if ( (result > 40) && (result < 75)) {
     cout << "You passed" << endl;
   }
   else {
   cout << "Well done.. You got an A" << endl;
   }

}
