Floating Point Input
#include <stdio.h>
void main()
{
float fp1 = 1.0f;
float fp2 = 20.0f;
float fp3 = 440.0f;
int k = 0;
k = scanf("%f %f %f", &fp1, &fp2, &fp3);
printf("\nReturn value = %d", k);
printf("\nfp1 = %f fp2 = %f fp3 = %f\n", fp1, fp2, fp3);
}
Related examples in the same category