From 97a693d996c79fb2a008b19750d8bb45512e01a2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 6 Feb 2017 11:26:44 -0500 Subject: Inital commit --- celciustofarenhight.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 celciustofarenhight.c (limited to 'celciustofarenhight.c') 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 +#include +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; +} -- cgit v1.2.3-70-g09d2