Mega Code Archive
Categories
/
C
/
Development
Use the command line parameter
#include
#include
int main(int argc, char *argv[]) { double pounds; pounds = atof(argv[1]) / 16.0; printf("%f pounds", pounds); return 0; }