We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4736af3 commit e456b84Copy full SHA for e456b84
bilangan prima.py
@@ -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
11
12
13
14
+bilprim()
0 commit comments