(Linux)I am trying to use this code:
/*
*Converts pounds to kilograms.
*/
#include <studio.h> /* printf, scanf,definitions*/
#define KG_PER_POUND .4536 /*conversion constant */
int
main(void)
{
double pounds, /* input - weight in pounds. */
kg; /*output - weight in kilograms */
/* Get the weight in pounds. */
printf("Enter the weight in pounds> ");
scanf("%lf", £s);
/* Convert the weight to kilograms. */
kg = KG_PER_POUND * pounds;
/* Display the weight in kilograms. */
printf("That equals %f kilograms. \n", kg);
return (0);
}
And after I try to to run it in terminal using
pwd
ls
gcc -o lab1 lab1.c
I keep getting the message "lab1.c:4: fatal error: studio.h: No such file or directory
compilation terminated"
Is there anything specifically that I am doing wrong? Thanks for any help.