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

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more