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