From 5795389ffa825f1529db9a226374d8b4299ce66c Mon Sep 17 00:00:00 2001 From: Asahel Date: Tue, 6 Feb 2024 09:08:50 -0800 Subject: Completed assignment. --- InClassExercise 9/program.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 InClassExercise 9/program.cpp (limited to 'InClassExercise 9/program.cpp') 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 +#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 -- cgit v1.2.3