1

a bug in a small exercise program.how do i correct it. thank you.

view story
linux-howto

http://forums.fedoraforum.org – /* exercise5-8.c -- convert fahrenheit temperature to celsius and kelvin temperature */ #include <stdio.h> void Temperatures(double f); const float ct1 = 1.8; const float ct2 = 32.0; const float ct3 = 273.16; int main(void) { double temp; printf("enter a temperature: "); scanf("%lf", &temp); while(temp >= 0 || temp < 0 ) // there is a bug { Temperatures(temp); printf("enter a temperature(q to quit): "); scanf("%lf", &temp); (HowTos)