Write a python program for
0
1 0
1 1 0
1 1 1 0
1 1 1 1 0
Answers
Answered by
0
Answer:
//algorithm
Integer i=1,j=1
While (i>6){
j=i
While (j>1){
Print("1")
j--
}
Print ("0")
Print("\n")
i++
}
Answered by
2
Question:-
Write a python program for the following pattern.
0
1 0
1 1 0
1 1 1 0
1 1 1 1 0
Program:-
n=int(input("Enter the number of rows: "))
for i in range(0,n):
for j in range(0,i+1):
if(i==j):
print(0,end=" ")
else:
print(1,end=" ")
print()
Similar questions