Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created July 7, 2021 06:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amankharwal/c81b65db0cf9d7fff7769fc2c38298dc to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main(){
float ftemp, ctemp;
cout<<"Enter the Temperature in Fahrenheit :";
cin>>ftemp;
ctemp = (ftemp - 32.0) * 5/9;
cout<<"Temperature in Celsius = "<<ctemp;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment