diff options
| author | Connor McDowell <[email protected]> | 2024-03-10 15:59:17 -0700 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-03-10 15:59:17 -0700 |
| commit | 5199c89accdc0d00a84160e75ac67f5f88e0add3 (patch) | |
| tree | f312c5ccdbd5bccc14df5275ab3d86ccee8f7dd7 /project/program.cpp | |
| parent | nested loop created (diff) | |
| download | in-class-exercise-8-connormcdowell275-5199c89accdc0d00a84160e75ac67f5f88e0add3.tar.xz in-class-exercise-8-connormcdowell275-5199c89accdc0d00a84160e75ac67f5f88e0add3.zip | |
functions fixed, loop the proper amount of times, are labled, and done overwrite parameters.HEADmain
Diffstat (limited to 'project/program.cpp')
| -rw-r--r-- | project/program.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/project/program.cpp b/project/program.cpp index fd7c5cf..da7a2b7 100644 --- a/project/program.cpp +++ b/project/program.cpp @@ -10,16 +10,27 @@ using std::cout; using std::cin; using std::endl; - +//test int main() { int n = 2; int m = 3; - //NestedForLoop(n, m); - //NestedWhileLoop(n, m); + cout << "Nested for loop for bounds of n = 2 and m = 3" << endl; + cout << endl; + NestedForLoop(n, m); + cout << endl; + + cout << "Nested while loop for bounds of n = 2 and m = 3" << endl; + cout << endl; + NestedWhileLoop(n, m); + cout << endl; + + cout << "Nested while loop for bounds of n = 2 and m = 3" << endl; + cout << endl; NestedDoWhileLoop(n, m); + cout << endl; return 0; }
\ No newline at end of file |