If-else problem
#include <iostream> using namespace std; int main() { int age =0; cout <<"enter your age here: "; cin >>age; if (age >=18) { if (age <50) { cout<<"young man"; } } else { if (age ==0) { cout<<"not borned yet"; } if (age <18) if (age >=14) { cout<<"semi young"; } if (age >0) if (age <14) { cout<<"still kid"; } if (age <0) { cout<<"null age"; } if (age >= 50) { cout<<"old man"; } } return 0; } everything works fine except the numbers over 50, where is the problem guys ??? thanks