/* Hesperus -- conversion in different units. */ #include int main(void) { int fathoms, inches, feet; //declarations float tmp = 10.7; char ch = 'C'; char s[] = "Very Much!"; // fathoms = 7; // initilization printf("Please enter fathoms:\n"); scanf("%d", &fathoms); feet = 6 * fathoms; // assignment, initilization inches = 12 * feet; // assignment, initilization printf("Wreck of the Hesperus \n"); printf("Its depth at sea in different units:\n"); printf("\t%d fathomas\n", fathoms); printf("\t%d feet\n", feet); printf("\t%d inches\n", inches); printf("tmp = %.2f\n", tmp); printf("I love \\\'%4c\'\\ \"%s\"\n", ch, s); return 0; }