Write a program in C to convert temperature from "CELSIUS to FAHRENHEIT"

#include <stdio.h>

int main()

{

Float celsius, fahrenheit;


//Converting the value from Celsiu to fahrenheit.


Printf("Enter the temperature in Fahrenheit"); 

Scanf ("%f", & Fahnenheit);

Celsius = (Fahnenheit -32)*5/9;

Printf (Temperature in celsius = %f", celsius);

Return 0;

}

Comments

Popular posts from this blog

Automations and robotics

Palindrome Pattern Program In Java Language

Rhombus Pattern Program In Java Language