lundi 31 octobre 2016

Triangle programs in Java [on hold]

I want a code to print the following output:

                         1  
                       2 1 2
                     3 2 1 2 3 
                   4 3 2 1 2 3 4 
                 5 4 3 2 1 2 3 4 5

And also with the following output I need code: (1,1) (1,2) (1,3) (1,4) (1,2) (1,3) (1,4) (1,3) (1,4) (1,4)

Aucun commentaire:

Enregistrer un commentaire