write a program to convert temperature from celcius to fahrenheit
/* wp to convert temp. in celcius into fahrenheit*/ #include<stdio.h> main() { int temp; float fahrenheit; printf("enter the temp in celsius:"); scanf("%d",&temp); fahrenheit=(30+1.81*temp); printf("fahrenheit=%f\n",fahrenheit); }
No comments:
Post a Comment