hey thanx man i got it to work but the calculations are all wrong i dunno why? here's the code=--
#include<stdio.h>
#include<math.h>
const double FEET_PER_CENTIMETER=0.033;
const double INCHES_PER_CENTIMETER=0.4;
const double CENTIMETERS_PER_FOOT=30.3;
int main(void) {
int cent, centf...
i was thinking bout if like in that long line with all the operations going on if it can possibly be split so that one line can calculate the remainder and one line for the conversion to inches i dunno if that is possible and then floor wont hav to be used just a suggesion
sngm0375@munro question4]$ gcc Height.c -o height
/tmp/ccq2PU8I.o(.text+0x88): In function `main':
: undefined reference to `floor'
collect2: ld returned 1 exit status"
thats the error sory i was excited to try it out....yea i changed it to 30.3 and it gave me the error above..
/* This program converts height in centimeters and
displays it into height in centimeters, feet, inches.*/
#include<stdio.h>
#include<math.h>
const double FEET_PER_CENTIMETER=0.033;
const double INCHES_PER_CENTIMETER=0.4;
const double CENTIMETERS_PER_FOOT=1.0/FEET_PER_CENTIMETER;
int...