Question: Consider the following c program. #################################################### #include int main(void) { int i; printf (Enter the value of i > ); scanf(%d,&i); if (i>10 || i

Consider the following c program.

####################################################

#include int main(void)

{ int i; printf ("Enter the value of i > ");

scanf("%d",&i); if (i>10 || i<=99)

printf("%d",(i-i/10*10)*10+i/10);

else

printf("out of range");

return 0; }

###################################################

a- What is the output if the input i = 9?

b- What is the output if the input i = 151?

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 Databases Questions!