From 6c83506cb44b1d20f66df404f0b6468b0e291b6b Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 25 Jun 2019 17:55:13 -0500 Subject: Do a thing: --- ee1301/wk1/lab1/strap012_lab1_s_2.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'ee1301/wk1/lab1/strap012_lab1_s_2.cpp') diff --git a/ee1301/wk1/lab1/strap012_lab1_s_2.cpp b/ee1301/wk1/lab1/strap012_lab1_s_2.cpp index 4b63f5c..0178f67 100644 --- a/ee1301/wk1/lab1/strap012_lab1_s_2.cpp +++ b/ee1301/wk1/lab1/strap012_lab1_s_2.cpp @@ -1,14 +1,14 @@ -#include -using namespace std; - -int main() -{ - double tf; - cout << "Enter temperature in degrees Celsius: "; - cin >> tf; - char c = 'F'; - double tc = tf; - char f = 'C'; - cout << tc << " degrees " << f << " = " << tf * (9/5.0) + 32 <<" degrees " << c << endl; -} - +#include +using namespace std; + +int main() +{ + double tf; + cout << "Enter temperature in degrees Celsius: "; + cin >> tf; + char c = 'F'; + double tc = tf; + char f = 'C'; + cout << tc << " degrees " << f << " = " << tf * (9/5.0) + 32 <<" degrees " << c << endl; +} + -- cgit v1.2.3