Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
251 B

#include <stdio.h>
int main (void) {
float a;
printf("Enter a floating-point value: ");
scanf("%f", &a);
printf("fixed-point notation: %f\n", a);
printf("exponential notation: %e\n", a);
printf("p notation: %a\n", a);
return 0;
}