aboutsummaryrefslogtreecommitdiff
path: root/InClassExercise 9/program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'InClassExercise 9/program.cpp')
-rw-r--r--InClassExercise 9/program.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/InClassExercise 9/program.cpp b/InClassExercise 9/program.cpp
new file mode 100644
index 0000000..0339535
--- /dev/null
+++ b/InClassExercise 9/program.cpp
@@ -0,0 +1,30 @@
+// Name: Asahel Lopez
+// Date: 2/6/24
+// Class: CST 116
+// Assignment: InClassExercise9
+
+#include <iostream>
+#include "ReferenceExamples.h"
+
+using std:: cout;
+using std:: endl;
+
+int main() {
+ int x = 5, y = 72;
+
+ Swap(x, y);
+
+ std::cout << "x = " << x << ", y = " << y << endl;
+
+ int n = 4392;
+
+ Standardize_101(n);
+
+ cout << "Modded n = " << n << endl;
+
+ Square(n);
+
+ cout << "Squared n = " << n << endl;
+
+ cout << " Size of an int" << sizeof(int);
+} \ No newline at end of file