//
chapter 01
/*
#include <stdio.h>
int main(void)
{
int dogs;
printf("How many dogs do you have?\n");
scanf("%d", &dogs);
printf("So you have %d dog(s)!\n", dogs);
return 0;
}
*/
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
//
chapter 02
// fathm_ft.c -- converts 2 fathoms to feet
/*
#include <stdio.h>
int main(void)
{
int feet, fathoms;
fathoms = 2;
feet = 6 * fathoms;
printf("There are %d feet in %d fathoms!\n", feet, fathoms); printf("Yes, I said %d feet!\n", 6 * fathoms);
return 0;
}
*/
//////////////////////////////////////////////////////////////////
/*
#include <stdio.h>
int main(void) // a simple program
{
int num;
// define a variable called num
num = 1;
// assign a value to num
printf("I am a simple "); // use the printf() function printf("computer.\n");
printf("My favorite number is %d because it is first.\n",num); return 0;
}*/
//////////////////////////////////////////////////////////////////
// two_func.c -- a program using two functions in one file