Print floating point number C Program
Here is C program to display floating point number on screen. To display floating point number, we use %f.
Here is another C Program. In given below program, .3 is used for print three number after point.
#include<stdio.h> int main() { float n; printf("Enter flaoting point number: "); scanf("%f",&n); printf("Floating point number is: "); printf("%f\n",n); return 0; }
Here is another C Program. In given below program, .3 is used for print three number after point.
#include<stdio.h> int main() { float n; printf("Enter flaoting point number: "); scanf("%f",&n); printf("Floating point number is: "); printf("%.3f\n",n); return 0; }