Untitled
plain_text
2 months ago
453 B
1
Indexable
Never
# Pengaturan Tempat Duduk # KAMUS # baris = nomor tiket // 4 # kolom = nomor tiket % 4 nomor_tiket = int(input("Masukkan nomor antrian tiket :")) kolom = nomor_tiket % 4 baris = nomor_tiket // 4 if kolom !=0 : baris = baris + 1 if kolom == 0 : kolom = 'D' elif kolom == 1 : kolom = 'A' elif kolom == 2 : kolom = 'B' elif kolom == 3 : kolom = 'C' print (f"Tempat duduk tiket nomor {nomor_tiket} memiliki nomor {baris}{kolom}")