aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsahel <[email protected]>2024-01-30 09:36:48 -0800
committerAsahel <[email protected]>2024-01-30 09:36:48 -0800
commitc96c1f0b1c192175668dee1020e5067863671aba (patch)
treec91427a0cbb80ef100f6d5a6b6f693d373374972
parentFinished first half of assignment (diff)
downloadhomework-2-asahellt-main.tar.xz
homework-2-asahellt-main.zip
FinishedHEADmain
-rw-r--r--Homework2/Source.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Homework2/Source.cpp b/Homework2/Source.cpp
index fb4d858..0341506 100644
--- a/Homework2/Source.cpp
+++ b/Homework2/Source.cpp
@@ -5,8 +5,6 @@
#include <iostream>
-#include "Header.h"
-
using namespace std;
int main() {
@@ -25,7 +23,15 @@ int main() {
std::cout << "Temperature in Fahrenheit: " << fahrenheit << endl;
+#ifdef VERBOSE
+std::cout << " 30C to F";
+std::cin >> Fahrenheit;
+fahrenheit = (9.0 / 5.0) * celsius + 32;
+std::cout << " F = 86 " << fahrenheit << endl;
+#endif
+
+
+
return 0;
}
- \ No newline at end of file