C examples for Data Type:float
Have the output use the following formats:
#include <stdio.h> int main(void) { float num;//from w w w. j a va2 s . c om printf("Enter a number: "); scanf("%f", &num); printf("The input is %.1f or %.1e\n", num, num); printf("The input is %+.3f or %.3E\n", num, num); return 0; }