#include using std::cout; int main() { /* for(int i=0;i<10;i++) cout << i << " "; //------------------------ cout << std::endl; int i=0; while(i < 10) { cout << i << " "; i++; } cout << std::endl; //------------------------- int j=0; do { cout << j << " "; j++; } while (j < 10); cout << std::endl; //-------------------------- */ for(int i=0;i<10;i++){//10 rows for(int x=0;x<10;x++)//1-10 on each row cout << x+1 << " "; cout << std::endl;//advances to next row } return 0; }