Tech Study

C Program to Convert farenheit to celcius

Introduction

C Program to convert farenheit to celcius. I have used Code:: Blocks compiler for debugging purpose. But you can use any C programming language compiler as per your availability.

#include <stdio.h>

int main()
{
    float celsius, fahrenheit;

    printf("Please temperature in Fahrenheit: \n");
    scanf("%f", &fahrenheit);

    celsius = (fahrenheit - 32) * 5 / 9; // Formula to caltulate Fahrenheit to Celsius

    printf("\n %f Fahrenheit = %f Celsius", fahrenheit, celsius);
}

Result

C Program to Convert farenheit to celcius
C Program to Convert farenheit to celcius

TaggedC++ Program to convert farenheit to celcius

Python Examples

Introduction: Python Examples are the basic programming concepts of python like python syntax,python data types,,python operators,python if else,python comments etc.. …

Read more

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more