diff options
| author | Taylor Rogers <[email protected]> | 2022-11-05 09:47:44 -0700 |
|---|---|---|
| committer | Taylor Rogers <[email protected]> | 2022-11-05 09:47:44 -0700 |
| commit | b8f41c2284910bd7f2493fe33727652014e8da34 (patch) | |
| tree | 5202206260946673cd95278151bc6d9a69903b82 /BlankConsoleLab | |
| parent | Created initial pseudo-code (diff) | |
| download | cst116-lab2-taylorrog-b8f41c2284910bd7f2493fe33727652014e8da34.tar.xz cst116-lab2-taylorrog-b8f41c2284910bd7f2493fe33727652014e8da34.zip | |
Started adding variables
Diffstat (limited to 'BlankConsoleLab')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index a443ef6..a85abc9 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -39,16 +39,25 @@ // -#include <iostream> +#include <iostream>; -using namespace std; using std::cout; using std::cin; using std::endl; +char Tunit = 0; +int TvalF = 0; +int TvalC = 0; + +const int Fmax = 121; +const int Fmin = -80; +const int Cmax = 49.5; +const int Cmin = -62; + int main() { - cout << "Hello World!\n"; + cout << "Please enter F for Fahrenheit or C for Celsius: "; + cin >> Tunit; } |