Question: how many asterisks would be printed by the following code? for ( int i = 0 ; i < 4 2 ; i + =

how many asterisks would be printed by the following code?
for(int i =0; i <42; i+=2){
int j =0;
do {
printf('*');
} while (++j<=0);
printf("
");
}
a. none
b.21
c.42
d.84
e.42^2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!