Electrical and Computer Engineering
5 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 = 4
•   {
•      for (j = 0; j < i; j++) j = 0
•         cout << j << "***";
•      cout << i << endl;
•   }
•   return 0;
•}