You are viewing a single comment's thread. Return to all comments →
//wth is wrong with this code?
using namespace std; int main() { int a,b; cin>>a>>b;
for(a;a<=b;a++) { if(a<=9) { if(a==8) cout<<"eight\n"; else if(a==9) cout<<"nine\n"; } else { if(a%2==0) cout<<"even\n"; else cout<<"odd\n"; } } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop
You are viewing a single comment's thread. Return to all comments →
//wth is wrong with this code?
include
using namespace std; int main() { int a,b; cin>>a>>b;
}