#include<stdio.h> float a=3.14; double b=3.14;
To print a double value, %lf is used as format specifier.
Therefore, the answer is printf("%f %lf", a, b);
Comments