Skip to content

Instantly share code, notes, and snippets.

@MitchellScottHenke
Created February 4, 2016 20:36
Show Gist options
  • Select an option

  • Save MitchellScottHenke/981f830a0b08a1d99a8c to your computer and use it in GitHub Desktop.

Select an option

Save MitchellScottHenke/981f830a0b08a1d99a8c to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
float c,f;
printf("What is the temperature in Celsius you wish to convert?\nT=");
scanf("%f",&c);
f = (1.8*c+32);
printf("%f in Fahrenheit is %f\n",c,f);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment