ASSIGNMENT 2SYAHIRAH ADILAH BINTI RANI
1427944
#include<stdio.h>
#include<math.h>
int main()
{
float hours,minutes,temperature,minutes2,t;
printf("How long is the power failure(in hours and minutes): ");
scanf("%f %f",&hours,&minutes);
minutes2=minutes/60;
t= hours+minutes2;
temperature = ((4*(pow(t,2)))/(t+2))-(20);
printf("Temperature of freezer(in degree celcius) is %.2f\n",temperature);
system("pause");
return 0;
}
Top Related