Page 1 of 1

Part V [6 points) Give the output of the following program: #include main() { int i, j, k; float x; i = 11; j

Posted: Mon May 02, 2022 12:11 pm
by answerhappygod
Part V 6 Points Give The Output Of The Following Program Include Stdio H Main Int I J K Float X I 11 J 1
Part V 6 Points Give The Output Of The Following Program Include Stdio H Main Int I J K Float X I 11 J 1 (35.85 KiB) Viewed 38 times
Part V [6 points) Give the output of the following program: #include <stdio.h> main() { int i, j, k; float x; i = 11; j = 4; k=i/j; printf("%d\n", k); x= i/j + 2.5; printf("%4.2f\n", x); k= i/j + 2.5; printf("%d\n", k); k= (float)i/j + 2.5; printf("%d\n", k); x = (float)i/j + 2.5; printf("%4.2f\n", x); = x = (float)(i/j) + 2.5; printf("%4.2f\n”, x); }