Question: int main ( ) { printf ( Start of the programn ) ; int x = 0 ; while ( x < 5 )

int main(){
printf("Start of the programn");
int x =0;
while (x <5){
printf("Value of x: %dn", x);
if (x %2==0){
printf("Evenn");
} else {
printf("Oddn");
}
x++;
switch (x){
case 1:
printf("Onen");
break;
case 2:
printf("Twon");
break;
default:
printf("Othern");
}
}
printf("End of the programn");
return 0;
} draw the control flow diagram and derive test cases

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