1#include <stdio.h>2int main() {3 double d = 7.9;4 int i = (int) d;5 double avg = (double)(5 + 2) / 2;6 printf("%d %.1f", i, avg);7 return 0;8}