24 Computer -- Programming Concepts and Logics

ask mattrab Visit www.askmattrab.com for more academic resources.

To convert temperature in Celsius to Fahrenheit scale.

// To convert temperature in Celcius to Fahrenheit scale. 

#include <stdio.h>
#include <conio.h>

int main()
{

    float dc, fer;
    printf("Enter temperature in Degree Celcious ");
    scanf("%f", &dc);

    fer = (dc*1.8)+32;

    printf("Converted temperaturein Farenheit = %f",fer);

    return 0;

}


Discussions

More notes on Programming Concepts and Logics

Close Open App