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

  1. #include <stdio.h>
  2. int main (void) {
  3. float a;
  4. printf("Enter a floating-point value: ");
  5. scanf("%f", &a);
  6. printf("fixed-point notation: %f\n", a);
  7. printf("exponential notation: %e\n", a);
  8. printf("p notation: %a\n", a);
  9. return 0;
  10. }