Monday, March 26, 2007

Celsius to Fahrenheit

int Celsius2Fahrenheit(int Celsius)
{
return 9*Celsius/5+32;
}

limitation: what if we want to pass a floating point number?

No comments: