/* WAP to convert Fahrenheit temperature into degree Celsius */
#include<stdio.h> #include<conio.h> void main() { int fahr, celsius; clrscr(); printf("enter fahrenhiet tempreture"); scanf("%d",&fahr); celsius = 5 * (fahr-32) / 9; printf("%d",celsius); getch(); }
No comments:
Post a Comment