News
Diamond number pattern printing In this section, we learn about Diamond numbers pattern printing. Here we will see how to use loops to print the numbers starting from 1 up to N in the form of diamond.
for (int i = 1; i <= n; i++) //First loop is checking to make sure my number is larger than or equal to 1. { //This loop creates the upper section of the diamond.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results