Question: Trace the following code with the values (9, 4); x=input('Enter value of x:); y=input('Enter value of y:); z = mod(x,y); Z=2+2; y=x; fprintf (X==%3.1f %f
Trace the following code with the values (9, 4); x=input('Enter value of x:"); y=input('Enter value of y:"); z = mod(x,y); Z=2+2; y=x; fprintf ("X==%3.1f %f AAA\t%3.2f ',X,Y, 2); Enter value of x:9 Enter value of y:4 X=4 X=-4.0 4.000000 AAA 3.00 Enter value of x:9 Enter value of y:4 x = 9 X=-=9.0 9.0000 AAA 6.00 b) Enter value of x:9 Enter value of y: 4 X= 5 X-4.0 4.000000 AAA 5.0 Enter value of x4 Enter value of y:9 X = 9 d) X 9.0 9.000000 AAA 6.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
