aboutsummaryrefslogtreecommitdiff
path: root/Homework2/Source.cpp
diff options
context:
space:
mode:
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