Jul-30-2019, 03:35 PM
Hello,
I thought my algorithm was perfect, but I was wrong.
Here's my code :
I thought my algorithm was perfect, but I was wrong.
Here's my code :
r = int(input()) i = 0 print("@", end="\n") while i < r-2: print("@" + (" "*(i) + "@"),end = "\n") if i == r-3: print("@"*(i+3), end="\n") i +=1I need to have this drawing if I put the number "6" in "r" parameter and I have It:
@ @@ @ @ @ @ @ @ @@@@@@But, when I put the number "2" I get this :
@Instead of :
@ @@Thanks for any help.
