Tuesday, November 13, 2018

Temperature Converter in C

A simple temperature converter in C that I wrote for my upcoming book in C programming. I hope you will find my work useful currently I am quite busy with my work that why I was not able to update my blog guys.

I am currently accepting programming work, it projects, school 

programming projects, thesis and capstone projects, IT consulting 

work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

My personal website is http://www.jakerpomperada.com


Sample Program Output


Program Listing

#include <stdio.h>

int main() 
 {
   float celsius=0.00,fahrenheit=0.00;
   system("COLOR F0");
   printf("\n\n");
   printf("\tTemperature Converter");
   printf("\n\n");
   printf("\tGive the temperature in Fahrenheit  : ");
   scanf("%f", &fahrenheit);
   
   celsius = (fahrenheit-32) * 5 / 9;
      
   printf("\n\n");
   printf("\tThe temperature in Celsius is %.2f\370C.",celsius);
   printf("\n\n");
   printf("\tEND OF PROGRAM");
   printf("\n\n");
}





No comments:

Post a Comment