// print square with nested for loop #include using namespace std; int main() { for (int r = 1; r <= 10; r++) { for (int c = 1; c <= 10; c++) { cout << "*"; } cout << endl; } return 0; }