Computer Science, asked by rajdeepsaha648, 6 months ago

8. Write a program to print the following pattern(user defined):
#
# @ #
#@#@#

Answers

Answered by RuwaisnZaid
0

Explanation:

for i in range(3):

for j in range(0,i+1):

if j%2==0:

print("#",end=" ")

else:

print("@",end=" ")

print()

mark me as brainly:

follow me

Answered by shivaramcvm
0

for i in range(3):

for j in range(0,i+1):

if j%2==0:

print("#",end=" ")

else:

print("@",end=" ")

print()

mark me as brainly:

follow me

Similar questions