#include #include #include int main(void) { int i; double x; printf("Here is i: %d here is x: %f\n", i, x); printf("Enter a double please:\n"); scanf("%lf", &x); printf("You entered: %f\n", x); int k = x; double y = (int)x; double z = rint(x); printf("x assigned to int is: %d\n", k); printf("x cast to int and assigned to double is: %f\n", y); printf("x rounded and assigned to double is: %f\n", z); return 0; }