From a7b42aa536cbe297f6b6f73b5dc8fcaeefd25dbd Mon Sep 17 00:00:00 2001 From: Asahel Date: Tue, 30 Jan 2024 09:27:34 -0800 Subject: Finished first half of assignment --- Homework2/Source.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'Homework2/Source.cpp') 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 -- cgit v1.2.3