#include main() { // Upper part of the diamond : // All the - TopicsExpress



          

#include main() { // Upper part of the diamond : // All the counter set to 1. The counter e and m is used for the // controlling of the lower part of the loop // However, it is set to be (n + 1) after it come out of the loop cout > n; for (a = e = m = 1; n >= a; e++, m++, n--) { // The e counter is used to for (b = 1; n > b; b++) // form the upper part of pyramid cout = c; c++) // to zero. cout = j; j++) // the looping process. cout = k; k++) // come out of the upper loop. To cout
Posted on: Wed, 04 Sep 2013 03:55:18 +0000

Trending Topics




© 2015