You are viewing a single comment's thread. Return to all comments →
why this code is unable to pass test case ??
using namespace std;
int main() {
string s[10]={"one","two","three", "four","five","six","seven","eigth","nine"}; int x,y ; cin>>x>>y; for(int i=x; i<=y;i++) { if(i>=1 && i<=9) { cout<9 && i%2==0) { cout<<"even"<
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 →
why this code is unable to pass test case ??
include
include
using namespace std;
int main() {
string s[10]={"one","two","three", "four","five","six","seven","eigth","nine"}; int x,y ; cin>>x>>y; for(int i=x; i<=y;i++) { if(i>=1 && i<=9) { cout<9 && i%2==0) { cout<<"even"<