fork download
  1. print("\nPerulangan while:")
  2. j = 2
  3. while j <= 6: # dari 2 sampai 6
  4. print("j =", j)
  5. j += 2
Success #stdin #stdout 0.02s 7200KB
stdin
Standard input is empty
stdout
Perulangan while:
('j =', 2)
('j =', 4)
('j =', 6)