1
0

printout.c 420 B

123456789101112131415161718
  1. /* printout.c -- uses conversion specifiers */
  2. #include <stdio.h>
  3. #define PI 3.141593
  4. int main(void)
  5. {
  6. int number = 7;
  7. float pies = 12.75;
  8. int cost = 7800;
  9. printf("The %d contestants ate %f berry pies.\n", number,
  10. pies);
  11. printf("The value of pi is %f.\n", PI);
  12. printf("Farewell! thou art too dear for my possessing,\n");
  13. printf("%c%d\n", '$', 2 * cost);
  14. return 0;
  15. }