diff options
| author | JerichoBingham <[email protected]> | 2021-10-13 14:13:32 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-13 14:13:32 -0700 |
| commit | b052b515af0c45253dbb1534125fa267c3c42810 (patch) | |
| tree | 9c8605a3b42b7ca7fcfc99ebeac41ad77cd578ef | |
| parent | Create Lab 3c. 3 (diff) | |
| download | cst116-lab2-jerichobingham-b052b515af0c45253dbb1534125fa267c3c42810.tar.xz cst116-lab2-jerichobingham-b052b515af0c45253dbb1534125fa267c3c42810.zip | |
Create Lab 2 4a. 1
| -rw-r--r-- | CST116F2021-Lab2/Lab 2 4a. 1 | 31 |
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; + +} |