home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug150.arc
/
C-STUFF2.LBR
/
MPH.C
< prev
next >
Wrap
Text File
|
1979-12-31
|
384b
|
16 lines
#include "stdio"
main() /* figure distance traveled */
{
int mph, time, wait;
printf("Enter your speed in miles per hour: ");
scanf("%d",&mph);
printf("Enter the number of hours: ");
scanf("%d",&time);
printf("Miles traveled = %d \n", mph * time);
scanf("%d",&wait);
}