Math, asked by divyapandu323, 1 month ago

#include <stdio.h>
void main() {
int n= 11,res=1;
do
{
n -= 5;
res *= 5;
}while (n > 5);
printf("%d",n*res);
}
what is the output of the program​

Answers

Answered by manasivisu
1

Answer:

25

Step-by-step explanation:

Typed the program in C IDLE and found the answer.

Answered by durgasrimurugan18
0

Answer:

r=25

Step-by-step explanation:

1st iteration: n-=5; n=n-5 now n=11-5 n=6

res*=5; res=res*5;  res=5*1 ;res=5

while(n(6)>5) condition true

2nd iteration: n-=5; n=n-5 now n=6-5 n=1

res*=5; res=res*5;  res=5*5 ;res=25

while(n(1)>5) condition false

now print stmt executed n*res (1*25)

so the answer is 25

Similar questions