blob: da7a2b75fe6490b8047e7728503667b4f1e7ae93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Name: Connor McDowell
// date: 1/29/2024
// class: CIS116
// Reason: inclass exercise 8
#include <iostream>
#include "NestedLoops.h"
using std::cout;
using std::cin;
using std::endl;
//test
int main()
{
int n = 2;
int m = 3;
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;
}
|