How many total stars will be displayed by each of the following program segments?
A) for (row = 0; row < 20; row++)
{ for (star = 0; star < 30; star++)
{ cout << '*';
}
cout << endl;
}
B) for (row = 0; row < 20; row ++)
{ for (star = 0; star < 30; star++)
{ if (star > 10)
break;
cout << '*';
}
cout << endl;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.