Logical Operators
Logical operators Along with other physical health requirements, astronaut candidates must have perfect vision (100%) and their height must be between 62 and 75 inches. Write a program that accordingly takes the vision percentage and height (in inches) as an input and prints "passed" if given conditions are satisfied and "failed" if otherwise. Sample Input 100 80 Sample Output failed Solution: #include <iostream> using namespace std; int main() { int vision; cin >> vision; int height; cin >> height; //your code goes here if (vision < 100 && height > 75 || height > 62){ cout << "passed" << endl; } else { cout << "failed" << endl; } return 0; } Please help me out here to point an error. It is testing correct 4/5 cases. Thanks in advance!