I have been doing c programming for about 3 days now and am pretty confused as to why this is not working. It basically is asking to estimate the temp inside a freezer after a certain time (t) power outage...
here is what i have so far, anyhelp is appreciated...
[tag][/tag]Code:#include <stdio.h> int main(void) { int time; /*time */ int temp; /* temperature */ printf("EE233 Spring 2010, P1: Power Failure Freezer Temperature Estimate."); /*Greeting */ printf("How long (hours and minutes) since the power failure to the freezer?>"); scanf("%d", &time); temp = (4*(time*time)/( time +2))-20; /*Calculate the temperature */ printf("The estimated temperature inside your freezer is %d degrees Celsius.", temp ); return (0); }
Not asking anyone to do this for me, just give me some hints on where to make this thing work...
Thanks for any help.



LinkBack URL
About LinkBacks



