+ 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; }
2 Antworten
+ 3
50000 and not 50,000
+ 1
@Xan thanks!!