SHARE
TWEET

Untitled

a guest Sep 16th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input("masukkan n : "))
  2. for i in range (n):
  3.     for j in range (n):
  4.         #array 2d. kolom = i, baris = j
  5.         if(j<=i): # ketika j kurang dari sama dengan i, dia akan print *
  6.             print("*", end = '') #untuk print tanpa baris baru
  7.     print("") #print baris baru
  8. """
  9.   j  j  j
  10. i *
  11. i *  *
  12. i *  *  *
  13. """
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top