aboutsummaryrefslogtreecommitdiff
path: root/Homework2/Source.cpp
diff options
context:
space:
mode:
authorAsahel <[email protected]>2024-01-30 09:27:34 -0800
committerAsahel <[email protected]>2024-01-30 09:27:34 -0800
commita7b42aa536cbe297f6b6f73b5dc8fcaeefd25dbd (patch)
treefd39fe0d8bc63e43fcee743ff7843843eaec9d65 /Homework2/Source.cpp
parentSpacing and headers (diff)
downloadhomework-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.cpp17
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