aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab2/Lab 3c. 3
diff options
context:
space:
mode:
Diffstat (limited to 'CST116F2021-Lab2/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;
+
+}