title: C Temperature Conversion Program Keeps Outputting 0 For Fahrenheit to Celsius
body: <p>My temperature conversion program in C keeps outputting 0 when I attempt to convert Fahrenheit to Celsius. The conversion from Celsius to Fahrenheit seems to work just fine. I have done the exact same thing for both functions and portions but I keep getting 0 for the second conversion. Can someone please help me or tell me what I am doing wrong?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  //Function Declarations
  
  float get_Celsius (float* Celsius);       //Gets the Celsius value to be converted.
  void to_Fahrenheit (float cel);           //Converts the Celsius value to Fahrenheit and prints   the new value.
  float get_Fahrenheit (float* Fahrenheit); //Gets the Fahrenheit value to be converted.
  void to_Celsius (float fah);              //Converts the Fahrenheit value to Celsius and prints the new value.
  
  int main (void)
  {
     //Local Declarations
     float Fahrenheit;
     float Celsius;
     float a;
     float b;
  
     //Statements
     printf("Please enter a temperature value in Celsius to be converted to Fahrenheit:\n");
     a = get_Celsius(&amp;Celsius);
     to_Fahrenheit(a);
     printf("Please enter a temperature value in Fahrenheit to be converted to Celsius:\n");
     b = get_Fahrenheit(&amp;Fahrenheit);
     to_Celsius(b);
  
     return 0;
  } //main
  
  float get_Celsius (float* Celsius)
  {
     //Statements
     scanf("%f", &amp;*Celsius);
     return *Celsius;
  }
  
  void to_Fahrenheit (float cel)
  {
     //Local Declarations
     float fah;
  
     //Statements
     fah = ((cel*9)/5) + 32;
     printf("The temperature in Fahrenheit is: %f\n", fah);
     return;
  }
  
  float get_Fahrenheit (float* Fahrenheit)
  {
     //Statements
     scanf("%f", &amp;*Fahrenheit);
     return *Fahrenheit;
  }
  
  void to_Celsius (float fah)
  {
     //Local Declarations
     float cel;
  
     //Statements
     cel = (fah-32) * (5/9);
     printf("The temperature in Celsius is: %f\n", cel);
     return;
  }
  </code></pre>