#include using namespace std; //Challenge: //You just took your final exam //Take in exam score (0 to 100), and tell //user what letter grade they will receive. int main() { cout << "Enter a number: " << endl; int x; cin >> x; if (x < 40) { cout << "less than 40.." << endl; } if (x == 40) //== is "equality" in c++ { cout << "it's 40." << endl; } if (x < 40) { cout << "it's less than 40" << endl; } // && is the logical AND operator if (x >= 13 && x <= 19) { cout << "This variable is a teenager" << endl; } // || is the logical OR operator if (x < 2 || x>100) { cout << "Your variable needs diapers" << endl; } return 0; }