diff options
| author | Asahel <[email protected]> | 2024-02-06 09:08:50 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-02-06 09:08:50 -0800 |
| commit | 5795389ffa825f1529db9a226374d8b4299ce66c (patch) | |
| tree | 613f463b88bb26891d8836a7937c23245a4ba413 /InClassExercise 9/program.cpp | |
| parent | add deadline (diff) | |
| download | in-class-exercise-9-asahellt-5795389ffa825f1529db9a226374d8b4299ce66c.tar.xz in-class-exercise-9-asahellt-5795389ffa825f1529db9a226374d8b4299ce66c.zip | |
Completed assignment.
Diffstat (limited to 'InClassExercise 9/program.cpp')
| -rw-r--r-- | InClassExercise 9/program.cpp | 30 |
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 |