samedi 13 juin 2020

Python star and digit Pattern

Can somebody help in printing this pattern!

I am not sure how to start.

*
*1*
*121*
*12321*
*1234321*
*123454321*
*1234321*
*12321*
*121*
*1*
*

here n = 5

Input Format: A single integer: N

Output Format: Required Pattern

Aucun commentaire:

Enregistrer un commentaire