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
3
Answer:
int d=4,s=1;
for(z=1;z<d;++z){
s*=z;
}
Read my bio once
Similar questions
Social Sciences,
3 months ago
Biology,
3 months ago
Social Sciences,
8 months ago
Math,
8 months ago
Biology,
1 year ago