home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Programming
/
C
/
SASC6571.LZX
/
tutorial
/
1_10_1.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1997-03-27
|
325 b
|
20 lines
#include "stdio.h"
main( )
{
float e_weight, m_weight;
printf("Enter your weight: ");
scanf("%f", &e_weight);
m_weight = convert_e_to_m( e_weight );
printf("Your effective weight on the moon would be: %f units.", m_weight);
}
convert_e_to_m( float weight )
{
return weight * 0.17;
}