aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerichoBingham <[email protected]>2021-10-13 14:11:56 -0700
committerGitHub <[email protected]>2021-10-13 14:11:56 -0700
commite3d078e4fcb394a75e45f109af775c71f148a2cd (patch)
treec0c913dfd849802a5611240ec46a8ae69468f67a
parentCreate Lab 2 3c. 2 (diff)
downloadcst116-lab2-jerichobingham-e3d078e4fcb394a75e45f109af775c71f148a2cd.tar.xz
cst116-lab2-jerichobingham-e3d078e4fcb394a75e45f109af775c71f148a2cd.zip
Create Lab 3c. 3
-rw-r--r--CST116F2021-Lab2/Lab 3c. 321
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;
+
+}