mardi 5 janvier 2016

what is the simplest logic to print this pattern in c or c++ or java? [on hold]

I am solving problems in online site but I am facing very difficult question, even tried hard I unable to solve the pattern please someone help,,,,....

input : 4
output:
4 4 4 4 4 4 4
4 3 3 3 3 3 4
4 3 2 2 2 3 4
4 3 2 1 2 3 4
4 3 2 2 2 3 4
4 3 3 3 3 3 4
4 4 4 4 4 4 4

Aucun commentaire:

Enregistrer un commentaire