You are viewing a single comment's thread. Return to all comments →
// start c++
using namespace std; int main() { int a, b; //a> a >> b;//a
cout << names[i - 1] << "\n"; } } if (a>9) { for (int j = 10; j <= b; j++) { if (j % 2 == 0) { cout << "even\n"; } else { cout << "odd\n"; } } } if (a<9&&b>9) { for (int i = a; i <= 9; i++)//a=5,b=15; { cout << names[i - 1] << "\n"; } for (int j = 10; j <= b; j++) { if (j % 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 →
// start c++
include
using namespace std; int main() { int a, b; //a> a >> b;//a
}