Double a = 3.111;
int b = 2;
int c;
c = a * b;
printf("%lf\n ",c); //If you want to output three-dimensional decimal, use printf("%.3lf\n ",c);
Returns 0;