Search code snippets, questions, articles...

temperature1

#include <stdio.h>
#include<math.h>
//farenheit int input, celcius float output
int main()
{
    int f;float c;
    scanf("%d",&f);
    c=(f-32)*(5/9.0);
    printf("Celcius temp=%f",c);
    return 0;
}
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet