Electrical and Computer Engineering
15 of 37
UAH
CPE 112
Nested for Example
•#include <iostream>
•using namespace std;
•
•int main()
•{
• int i;
• int j;
•
• for (i = 4; i >= 1; i--) i = 3
•   {
•      for (j = 0; j < i; j++) j = 4
•         cout << j << "***";
•      cout << i << endl;
•   }
•   return 0;
•}