I would like to know how would one print this pattern out. Preferrably in C++ This program takes in only the number of rows as input and then prints the output as shown in the Example.
Input : 3
Output :
1*2*3
7*8*9
4*5*6
Input : 4
Output :
1*2*3*4
9*10*11*12
13*14*15*16
5*6*7*8
Aucun commentaire:
Enregistrer un commentaire