diff options
| author | Asahel <[email protected]> | 2024-01-30 09:27:34 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-01-30 09:27:34 -0800 |
| commit | a7b42aa536cbe297f6b6f73b5dc8fcaeefd25dbd (patch) | |
| tree | fd39fe0d8bc63e43fcee743ff7843843eaec9d65 /Homework2/Source.cpp | |
| parent | Spacing and headers (diff) | |
| download | homework-2-asahellt-a7b42aa536cbe297f6b6f73b5dc8fcaeefd25dbd.tar.xz homework-2-asahellt-a7b42aa536cbe297f6b6f73b5dc8fcaeefd25dbd.zip | |
Finished first half of assignment
Diffstat (limited to 'Homework2/Source.cpp')
| -rw-r--r-- | Homework2/Source.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Homework2/Source.cpp b/Homework2/Source.cpp index f98f48b..fb4d858 100644 --- a/Homework2/Source.cpp +++ b/Homework2/Source.cpp @@ -7,12 +7,25 @@ #include "Header.h" +using namespace std; +int main() { + double celsius, fahrenheit; + float CtoF(int cel); + float FtoC(int fah); -int main() { + std::cout << " Enter the temperature in Celsius: "; + + std::cin >> celsius; + fahrenheit = (9.0 / 5.0) * celsius + 32; + + std::cout << "Temperature in Fahrenheit: " << fahrenheit << endl; + return 0; -}
\ No newline at end of file +} + +
\ No newline at end of file |