Pattern
Input
The first line input contains an Integer(N).
Explanation
Given N = 2 and T = 3
The first line having N spaces
and the last line having no spaces.
sample Input 1
2 2
sample Output 1
**
**
Sample Input 2
2 3
sample Output 2
**
**
**
x=input()
N,T=x.split(" ")
N=int(N)
T=int(T)
for i in range(T):
for j in range(N):
print("*",end="")
print()
Comments
Leave a comment