/******************************************************************** * Section 15 * M/c No : M * Roll No : 18CS100XY * Names : Soumyajit Dey, Aritra Hazra * Assignment No : 1a * Description : Program to convert celcius temperature to fehrenheit ********************************************************************/ #include int main() { double celcius, fehrenheit; printf("Enter Temperature in Celcius: "); scanf("%lf", &celcius); // formula: celcius/5 = (fehrenheit-32)/9 // So, fehrenheit = 9*celcius/5 + 32 fehrenheit = 9*celcius/5 + 32; printf("The Temperature in Feherenheit: %lf\n", fehrenheit); return 0; }