Part V [6 points) Give the output of the following program: #include main() { int i, j, k; float x; i = 11; j
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Part V [6 points) Give the output of the following program: #include main() { int i, j, k; float x; i = 11; j
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); }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!