Sep 15 2009

Temp Converter

Category: C Programmingadmin @ 4:50 am

/*Convert a Celsius temperature to Fahrenhit*/
#include<stdio.h>
main()
{
      float tmpc;
      float tmpf;
      printf("Enter Celsius temperature:");
      scanf("%f",&tmpc);
      tmpf=32+tmpc*9/5;
      printf("Farenhit temperature:%.2f\n",tmpf);
 
      fflush(stdin);
      getchar();
}

Tags: , ,

One Response to “Temp Converter”

  1. Cadalla says:

    Great site. Keep doing.,

Leave a Reply