fork(1) download
  1. lines = int(input("Enter Number Of Lines")) #3
  2. print("\n")
  3. for i in range(lines): #0,1,2
  4. for j in range(lines): #0,1,2
  5. if i>=j:
  6. print("*")
  7. # if i ==0 and j==0:
  8. # print("*")
  9. # if i==0 and j==1:
  10. # print(" ")
  11. # if i ==0 and j==2:
  12. # print(" ")
  13. # print("\n")
  14. # if i ==1 and j==0:
  15. # print("*")
  16. # if i ==1 and j==1:
  17. # print("*")
  18. # if i ==1 and j==2:
  19. # print(" ")
  20. # print("\n")
  21. # if i ==2 and j==0:
  22. # print("*")
  23. # if i ==2 and j==1:
  24. # print("*")
  25. # if i ==2 and j==2:
  26. # print("*")
  27. # print("\n")
  28.  
  29.  
  30.  
  31. # *
  32. # **
  33. # ***
  34.  
  35.  
  36. # ***
  37. # ***
  38. # ***
  39.  
  40.  
  41.  
  42.  
Success #stdin #stdout 0.1s 14140KB
stdin
3
stdout
Enter Number Of Lines

*
*
*
*
*
*