// stars2.cpp: using a loop in the function to print a row of stars #include using namespace std; void print_stars(); int main() { print_stars(); print_stars(); cout << " hello\n"; print_stars(); print_stars(); system("pause"); return 0; } void print_stars() { for (int i=1; i<=7; i++) cout << "*"; cout << endl; }