Tuesday, 29 August 2017

C Program for Converting Celcius to Farenheit

/* Convert Celcius to Farenheit */

#include<stdio.h>
int main()
{
    float c,f;
    printf("Type celcius: ");
    scanf("%f",&c);
    f = c * 9/5 + 32;
    printf("farenheit: %f",f);
    return 0;
}

No comments:

Post a Comment