Newbie

closed account (zTUSz8AR)

Write a C++ statement that uses the manipulator setfill to output a line containing 35 stars, as in the following line:


I am very confused on this problem would I have to add

cout << string('*', 35) << endl;

1
2
3
4
5
6
7
8
9
int num = 1; 
int i;

for (i = 0; i < 5; i++) 
{ 
num = num * (5 - i); 
cout << num << " "; 
} 
cout << endl;
cout << setfill('*') << setw(35) << '.' << endl;
Topic archived. No new replies allowed.