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
//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:
Post a Comment