Computer Science, asked by malar76, 11 months ago

hw to print pattern
/****
*/***
**/**
***/*
****/

Answers

Answered by tamaghnadey1916
1

Answer:

for i in range(5):

for j in range (5):

if i==j: print ("/",end="")

else: print ("*",end="")

print ()

Explanation:

I hope that helps you.

This is in python but I can also do this in Java if you want. Just comment that below.

Thank you

Similar questions