Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
383 B
3
Indexable
Never
#bismillah
angka = []

angkastr = list(input('Masukkan angka2: ').split(' '))
for i in range (len(angkastr)):
    x = int(angkastr[i])
    angka.append(x)


result = 'idk'

for i in range(len(angka)):
    hitung = angka[i] % 2
    if hitung == 0:
        result = 'Punya angka genap'
        break
    else:
        result = 'Tidak punya angka genap'
        
print (result)