Answer to Question #308217 in C for ahmed

Question #308217

Write a program for converting temperature from degrees Celsius to degrees Fahrenheit, given the formula:

F = C x 95 + 32


1
Expert's answer
2022-03-10T02:08:39-0500
#include <stdio.h>

int main() {
    double C, F;

    printf("Enter a temeperature in C: ");
    scanf("%lf", &C);
    F = C * 9.0/5.0 + 32.0;
    printf("%.2lf C = %.2lf F\n", C, F);

    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS