vendredi 13 mars 2015

How do print the following pattern in C/C++?


(For n=4)



1
2*3
4*5*6
7*8*9*10
7*8*9*10
4*5*6
2*3
1


Printing the above triangle is quite easy but I couldn't figure out how to print the lower triangle.




Aucun commentaire:

Enregistrer un commentaire