Predict the output of the given pseudo code if the value of n is 35
Read n
While n% 101=0
nn 3
end while
nanti
writen
0 53.0
0 45.0
0 500
55,0
Answers
Answered by
0
.........sorry...............
Answered by
0
Output is 35.
Program is given below.
Explanation:
#include <stdio.h>
int main() {
int n;
printf("Enter the value of n: \n");
scanf("%d",&n);
while(n%101==0)
{
n=3;
}
printf("Value of n is equal to %d.",n);
return 0;
}
Refer the attached image for the output.
Attachments:
Similar questions
Math,
3 months ago
English,
3 months ago
Social Sciences,
7 months ago
History,
7 months ago
Physics,
11 months ago