#include <iostream> int main() { for(int i=1; i<11; ++i) { std::cout<<"The number "<<i<<" is an "; if(i%2 == 0) std::cout<<"even number."<<std::endl; else std::cout<<"odd number."<<std::endl; } //Line below is optional. Depends upon the IDE. std::cin.get(); return 0; }