- Code: Select all
#include<stdio.h>
#include<conio.h>
main()
{
float cels,fahr;
printf("Enter temperature in fahrenheit");
scanf("%f",&fahr);
cels= (float) (5/9.0)*(fahr-32);
printf("\ntemperature in celsius=%f",cels);
getch();
}
|
Active Topics:
|
#include<stdio.h>
#include<conio.h>
main()
{
float cels,fahr;
printf("Enter temperature in fahrenheit");
scanf("%f",&fahr);
cels= (float) (5/9.0)*(fahr-32);
printf("\ntemperature in celsius=%f",cels);
getch();
}
Return to Computer Notes : Some Sample Programs
Users browsing this forum: No registered users and 0 guests