diff options
| author | JerichoBingham <[email protected]> | 2021-10-13 14:11:56 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-13 14:11:56 -0700 |
| commit | e3d078e4fcb394a75e45f109af775c71f148a2cd (patch) | |
| tree | c0c913dfd849802a5611240ec46a8ae69468f67a | |
| parent | Create Lab 2 3c. 2 (diff) | |
| download | cst116-lab2-jerichobingham-e3d078e4fcb394a75e45f109af775c71f148a2cd.tar.xz cst116-lab2-jerichobingham-e3d078e4fcb394a75e45f109af775c71f148a2cd.zip | |
Create Lab 3c. 3
| -rw-r--r-- | CST116F2021-Lab2/Lab 3c. 3 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/CST116F2021-Lab2/Lab 3c. 3 b/CST116F2021-Lab2/Lab 3c. 3 new file mode 100644 index 0000000..31efb45 --- /dev/null +++ b/CST116F2021-Lab2/Lab 3c. 3 @@ -0,0 +1,21 @@ +#include <iostream> + +using std::cout; + +int age, days; + +int main() + +{ + +cout << "Please Enter Your Age: \n\n"; + +std::cin >> age; + +days = age * 365; + +cout << "\nYour Age in Days: " << days; + +return 0; + +} |