diff options
| author | Trevor Bouchillon <[email protected]> | 2022-11-06 16:20:10 -0800 |
|---|---|---|
| committer | Trevor Bouchillon <[email protected]> | 2022-11-06 16:20:10 -0800 |
| commit | 03d013a05680713be4dae86c5ce66bd600b3b920 (patch) | |
| tree | d8fcabba0503ab192750b52bfb8fa5af4b04402f /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab2-daboochillin-03d013a05680713be4dae86c5ce66bd600b3b920.tar.xz cst116-lab2-daboochillin-03d013a05680713be4dae86c5ce66bd600b3b920.zip | |
Intial Commits
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..54bd036 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -9,8 +9,20 @@ using std::cout; using std::cin; using std::endl; +int UserInputTemp; + +int CelciusToFarenheit(int Celcius2Farenheit) { + Celcius2Farenheit = (UserInputTemp * (9 / 5)) + 32; + return UserInputTemp; +} + int main() { - cout << "Hello World!\n"; + + cout << "Please enter a temperature in Celcius: "; + cin >> UserInputTemp; + cout << CelciusToFarenheit(UserInputTemp); + + } |