|
@ -8,9 +8,9 @@ int main (void) { |
|
|
|
|
|
|
|
|
printf("Enter a floating-point value: "); |
|
|
printf("Enter a floating-point value: "); |
|
|
scanf("%f", &a); |
|
|
scanf("%f", &a); |
|
|
printf("fixed-point notation: %f\n", a); |
|
|
|
|
|
printf("exponential notation: %e\n", a); |
|
|
|
|
|
printf("p notation: %a\n", a); |
|
|
|
|
|
|
|
|
printf("fixed-point notation: %.2f\n", a); |
|
|
|
|
|
printf("exponential notation: %.2e\n", a); |
|
|
|
|
|
printf("p notation: %.2a\n", a); |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
|
|
|
|
|
|