Question: draw using the simplest data path and logic and explain. void main( int x, y, z; x=0; y=0; scanf(input z: %d, &z); while (z+0){ if
void main( int x, y, z; x=0; y=0; scanf("input z: %d", &z); while (z+0){ if ((z%2) == 1) x=x+4; else y=y+2; z=z-1; printf("value X = %d, value y = %d", x, y); void main( int x, y, z; x=0; y=0; scanf("input z: %d", &z); while (z+0){ if ((z%2) == 1) x=x+4; else y=y+2; z=z-1; printf("value X = %d, value y = %d", x, y)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
