for (int j = 1; j < i * i; j++) code example Example: for (int i = 10; i<350;i = i+50) for (int i = 10; i<350;i = i+50)