fathm_ft.c 287 B

1234567891011121314
  1. // fathm_ft.c -- converts 2 fathoms to feet
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. int feet, fathoms;
  6. fathoms = 2;
  7. feet = 6 * fathoms;
  8. printf("There are %d feet in %d fathoms!\n", feet, fathoms);
  9. printf("Yes, I said %d feet!\n", 6 * fathoms);
  10. return 0;
  11. }