/* convert celcius to farenheit */
#include<stdio.h>
int main()
{
float c,f;
printf("Type celcius: ");
scanf("%f",&c);
f = c * 9/5 + 32;
printf("farenheit: %f",f);
return 0;
}
#include<stdio.h>
int main()
{
float c,f;
printf("Type celcius: ");
scanf("%f",&c);
f = c * 9/5 + 32;
printf("farenheit: %f",f);
return 0;
}
No comments:
Post a Comment