The float format is:% f
The format of integer int is:% d
Long number format :%ld
Long unsigned number format is:% lu
/* float datatype input and output example */ #include <stdio.h> #include <stdlib.h> int main() { scanf("%f", &floatVariable); printf("What you entered is: %f", floatVariable); return 0; }