mardi 5 avril 2022

Print Pattern - Coding Ninjas Career Camp Fresher

Print the following pattern for the given N number of rows.

Pattern for N = 4

1
##
234
####

Input format :

Integer N (Total no. of rows)

Output format :

Pattern in N lines

Constraints:

N lies in the range: [1,20]

Sample Input:

5

Sample Output:

1
##
234
####

Aucun commentaire:

Enregistrer un commentaire