diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-02-06 11:26:44 -0500 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-02-06 11:26:44 -0500 |
| commit | 97a693d996c79fb2a008b19750d8bb45512e01a2 (patch) | |
| tree | 6df17bfe7de7c59f7b1083828d71a91e61fae9fa /celciustofarenhight.c | |
| download | engr0016-97a693d996c79fb2a008b19750d8bb45512e01a2.tar.gz engr0016-97a693d996c79fb2a008b19750d8bb45512e01a2.tar.bz2 engr0016-97a693d996c79fb2a008b19750d8bb45512e01a2.zip | |
Diffstat (limited to 'celciustofarenhight.c')
| -rw-r--r-- | celciustofarenhight.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/celciustofarenhight.c b/celciustofarenhight.c new file mode 100644 index 0000000..bde6de6 --- /dev/null +++ b/celciustofarenhight.c @@ -0,0 +1,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; +} |
