Temperature conversion (Farhenheite To Celcius

 include<stdio.h>

int main() {

    int f;

    float c;

    printf("TEMPERATURE_CONVERSATION");

  //taking input from user

    printf("\nenter the temperature in farhenhite");

    scanf("%d\n",& f);

  //logic for conversion 

    c=(f-32)*5/9;

    printf("temperature in celsius=%f",c);

  return 0;

}

Comments

Popular Posts