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
Get step-by-step solutions from verified subject matter experts
