4) If Else
Use if else to make a decision.
All Topics
Run Program
C++ Code
#include
using namespace std; int main() { int marks = 85; if (marks >= 60) { cout << "Passed" << endl; } else { cout << "Try again" << endl; } return 0; }
Program Input (optional)
Output