Computer Science, asked by rachelyana465, 8 months ago

b) Write an equivalent for() loop for the following do-while loop.
int s=1, d=4, z=1;
do
{
s*=z;
}while(++z<d);


Please tell me the correct answer fast​

Answers

Answered by Imblank
3

Answer:

int d=4,s=1;

for(z=1;z<d;++z){

s*=z;

}

Read my bio once

Similar questions