Hi!
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 ....?
printf(?????)

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.
printf(????);
#include <stdio.h>

int main()
{
   int A = 5;
   double B = 10.5;
   double result = A / B;
   printf("result = %f\n", result);
   return 0;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.