int product = 1;
for ( int i = 1; i <= n; i ++ ) {
for ( int j = 1; j <= i; j ++ ) {
// if ( j % i == 0 ) {
for ( int k = 0; k < j; k ++ ) {
product *= (i * j);
}
// }
}
}
If you are experiencing a similar issue, please ask a related question
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
13 Experts available now in Live!