Answers for "program c table loop fahrenheit to celsius conversion"

C
0

program c table loop fahrenheit to celsius conversion

#include<stdio.h>
int main()
{
   float celsius, fahr ;
   int lower, upper, step ;

   lower=0, upper=500, step=30 ;
   fahr = lower ;

   while ( fahr <= upper )
   {
      celsius = (5.0/9.0) * (fahr - 32) ;

      printf("%3.0f \t %6.1f \n", fahr , celsius) ;

      fahr += step ;  // fahr = fahr + step
   }

   return 0;
}
Posted by: Guest on October-08-2021

Code answers related to "program c table loop fahrenheit to celsius conversion"

Code answers related to "C"

Browse Popular Code Answers by Language