celcius to farhenite

 #include <stdio.h>

#include <math.h>


float cel_far( float a ){

    return ((a*1.8)+32);

}



int main() {

    float  cel, far; 

    printf("Enter temp in cel : ");

    scanf("%f",&cel);

    

   

    

    far=cel_far(cel);

   

    

   

    printf("avg is %f", far );

    

    

    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings