aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerichoBingham <[email protected]>2021-10-13 14:13:32 -0700
committerGitHub <[email protected]>2021-10-13 14:13:32 -0700
commitb052b515af0c45253dbb1534125fa267c3c42810 (patch)
tree9c8605a3b42b7ca7fcfc99ebeac41ad77cd578ef
parentCreate Lab 3c. 3 (diff)
downloadcst116-lab2-jerichobingham-b052b515af0c45253dbb1534125fa267c3c42810.tar.xz
cst116-lab2-jerichobingham-b052b515af0c45253dbb1534125fa267c3c42810.zip
Create Lab 2 4a. 1
-rw-r--r--CST116F2021-Lab2/Lab 2 4a. 131
1 files changed, 31 insertions, 0 deletions
diff --git a/CST116F2021-Lab2/Lab 2 4a. 1 b/CST116F2021-Lab2/Lab 2 4a. 1
new file mode 100644
index 0000000..2a37fc5
--- /dev/null
+++ b/CST116F2021-Lab2/Lab 2 4a. 1
@@ -0,0 +1,31 @@
+#include <iostream>
+
+#include <iomanip>
+
+using std::cout;
+
+using std::setprecision;
+
+using std::endl;
+
+using std::ios;
+
+int main()
+
+{
+
+float temp;
+
+cout << "Enter Your Temperature: \n";
+
+std::cin >> temp;
+
+cout << "Your Temperature is ";
+
+cout.setf(ios::fixed);
+
+cout << setprecision(5) << temp << endl;
+
+return 0;
+
+}