// con1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; int main() { int a; cout << "Enter an int:"; cin >> a; if (a < 30) { cout << "no " << a << " is not b/w 30 & 50" << endl; } else { // a >= 30 if (a < 50) cout << "yes " << a << " is b/w 30 & 50" << endl; else // a >= 50 cout << "no " << a << " is not b/w 30 & 50" << endl; // Lo've says the code doesn't work correctly for a==30 return 0; }