C++ Programming Code Examples C++ > For Loops and While Loops Code Examples nested do...while loop nested do...while loop #include <iostream> using namespace std; int main () { int i = 0; do { int j = 0; do { cout << "i = " << i << " and j = " << j << endl; j++; }while(j < 5); i++; }while(i < 3); return 0; }