c++ full program that allows a lecture to add a semester mark final examination mark, the program must then compute to whether the student pass or not
#include <iostream>
using namespace std;
int main() {
float sem, final;
cout << "Enter semester mark";
cin >> sem;
cout << "Enter final mark";
cin >> final;
cout << ((((sem + final) / 2) >= 60) ? "the student have passed" : "the student have not passed");
return 0;
}
Comments
Leave a comment