im using dev-c++ compiler, and i keep getting an error on this bolded line of code
Code:#include <iostream> using namespace std; int main() { int age; cout<< "Please input your age..."; cin>> age; cin.ignore(); if ( age <= 40) { cout<<"You are pretty young!"; } else if( age >=41, age <= 60 ) { cout<<"You are kind of old!"; } else ( age >= 61) { cout<<"You are very old!"; } cin.get(); return 0; }
the error I'm getting says this: expected ";" before "{" token.
any help guys?



LinkBack URL
About LinkBacks



