I want to learn C programming.
I have problem whit print out.
if I have:

double    value_1;
int       value_2;
// how do I print out double ....?

if I have

int A=5;
double B=10.5;
result=(double) A/B
// the result type is double but how do I print it out.
#include <stdio.h>

int main()
   int A = 5;
   double B = 10.5;
   double result = A / B;
   printf("result = %f\n", result);
   return 0;