j

Monday, 2 November 2015

Write a program that gets temperature from the user in Fahrenheit and convert it into Celsius



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float f,c;
printf("Enter temprature in fahrenheit :");
scanf(“%f”,&f);
c=5/9*(f-32);
printf("Temprature in Celsius is ",c);
getch();
}

Subscribe to this Blog via Email :