Question: This is Programming language C Consider the following code fragment: int foo; scanf ( %d, &foo ); while ( foo < 10 ) { printf
This is Programming language C
Consider the following code fragment:
int foo;
scanf ( "%d", &foo );
while ( foo < 10 ) {
printf ( "%d", foo );
scanf("%d", &foo );
}
Suppose that the body of this loop executes three (3) times. How many times was the loop-condition evaluated to check whether it was true or false?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
