Untitled
unknown
plain_text
2 years ago
453 B
10
Indexable
# 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}")Editor is loading...