Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Thursday, February 10, 2011

C13 : Read temperature and convert into celcious

Back to Home   &  C


//Program to read temperature and convert into celcious

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float f,c;
printf("Enter temperature\n");
scanf("%f",&f);
c=f-32/1.8;
printf("Temperature in Celcious=%f",c);
getch();
}
--------------------------------------------------------
Output
Enter temperature
12.34
Temperature in Celcious=5.437778
==========================================
Back to Home   &  C

No comments: