Answers for "print double and long double in c"

C
4

print double in c

#include<stdio.h>

int main()
{
    double d = 123.32445;

    //using %f format specifier
    printf("Value of d = %fn",d);

    //using %lf format specifier
    printf("Value of d = %lfn",d);

    return 0;
}
Posted by: Guest on October-12-2020

Code answers related to "C"

Browse Popular Code Answers by Language