+ 1

Can't identify why this program isn't working

#include <iostream> using namespace std; int main() { int x; cout<<"Enter age:"<<endl; cin>>x; int y; cout<<"Enter marks:"<<endl; cin>>y; int z; cout<<"Enter salary:"<<endl; cin>>z; if(x<=55 && (y>=90||z>50,000 )){ cout<<"eligible"<<endl; } else { cout << "ineligible" << endl; } return 0; }

4th Apr 2018, 4:03 AM
Sneha Chakravarthy
Sneha Chakravarthy - avatar
2 Respostas
+ 3
50000 and not 50,000
4th Apr 2018, 4:03 AM
Emma
+ 1
@Xan thanks!!
4th Apr 2018, 4:06 AM
Sneha Chakravarthy
Sneha Chakravarthy - avatar