#include<stdio.h>
int main() {
float c,f;
scanf("%f",&c);
f=(c * 9 / 5) + 32;
printf("fahrenheit is %f\n ",f);
return 0;
}
Input:
34.5
Output:
fahrenheit is 94.099998
int main() {
float c,f;
scanf("%f",&c);
f=(c * 9 / 5) + 32;
printf("fahrenheit is %f\n ",f);
return 0;
}
Input:
34.5
Output:
fahrenheit is 94.099998
No comments:
Post a Comment