Skip to content

Instantly share code, notes, and snippets.

@sachinsaxena25
Created July 17, 2019 17:23
Show Gist options
  • Save sachinsaxena25/6602e83f8d0dba5abc2c67a50c750e7c to your computer and use it in GitHub Desktop.
Save sachinsaxena25/6602e83f8d0dba5abc2c67a50c750e7c to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main(void){
float fahrenheit = 0.0f;
float celsius = 0.0f;
printf("please enter the value of fahrenheit :\n");
scanf("%f", &fahrenheit);
celsius = (fahrenheit - 32) * 5 / 9;
printf("Fahrenheit To Celsius is = %.2f\n", celsius);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment