summaryrefslogtreecommitdiff
path: root/celciustofarenhight.c
blob: bde6de6fe405ac887f40f419015c6cc702cec99e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* CelsiusToFahreneit */
#include <stdio.h> 
#include<stdlib.h> 
int main() 
{
    double input;
    printf("Give me a number: ");
    scanf("%lf", &input);
    double answer = (input * (9.0 / 5.0) + 32);
    printf("%8.4lf C = %8.4lf F\n\n", input,answer);
    return 0;
}