diff options
| author | Asahel <[email protected]> | 2024-01-30 09:36:48 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-01-30 09:36:48 -0800 |
| commit | c96c1f0b1c192175668dee1020e5067863671aba (patch) | |
| tree | c91427a0cbb80ef100f6d5a6b6f693d373374972 | |
| parent | Finished first half of assignment (diff) | |
| download | homework-2-asahellt-main.tar.xz homework-2-asahellt-main.zip | |
| -rw-r--r-- | Homework2/Source.cpp | 12 |
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 |