Omega Krypton
0
Q:

int to double c

double a = 12.34;
int b = a ;
//b = 12 not 12.34
1
#include <stdio.h>

main() {

   int sum = 17, count = 5;
   double mean;

   mean = (double) sum / count;
   printf("Value of mean : %f\n", mean );
}
2
int vIn = 0;
double vOut = (double)vIn;
0

New to Communities?

Join the community