problem 6


#include <stdio.h>

int main() {
    float cel, fer;
    printf("Enter a temperature in Celsius: ");
    scanf("%f", &cel);
    fer = 1.8 * cel + 32;
    printf("%.2f degrees Celsius is equal to %.2f degrees Fahrenheit", cel, fer);
    return 0;
}


Contact Form