Write a program to print W pattern of N lines using a asterisk(*) character
NOTE : There is a space after each asterisk (*) character.
Input:
The first line is an integer N
Explanation:
For N=5
The output should be
* * * * * * * * *
* * * * * * * *
* * * * * *
* * * *
* *
n = int(input())
for i in range(n):
m = n - i
for j in range(m):
print('* *', end=' ')
print('\n')
Comments
Leave a comment