Skip to content

Commit e456b84

Browse files
committed
Create bilangan prima.py
1 parent 4736af3 commit e456b84

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

bilangan prima.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def bilprim():
2+
input1 = int(input('Masukkan angka : '))
3+
4+
if input1 >= 3:
5+
if input1 % 2 == 0:
6+
print(input1, 'BUKAN angka PRIMA.')
7+
else:
8+
print(input1, 'adalah angka PRIMA.')
9+
elif input1 in range (1,3):
10+
print(input1, 'adalah angka PRIMA.')
11+
else:
12+
print(input1, 'BUKAN angka PRIMA.')
13+
14+
bilprim()

0 commit comments

Comments
 (0)