Lompat ke konten Lompat ke sidebar Lompat ke footer

Program Python Operator Aritmatika


Program Python

print("Program Aritmatika Python")

bilangan1 = 20
bilangan2 = 10

print("bilangan1+bilangan2 = ", bilangan1+bilangan2)
print("bilangan1*bilangan2 = ", bilangan1*bilangan2)
print("bilangan1-bilangan2 = ", bilangan1-bilangan2)
print("bilangan1/bilangan2 = ", bilangan1/bilangan2)
print("bilangan1//bilangan2 = ", bilangan1//bilangan2)
print("bilangan1%bilangan2 = ", bilangan1%bilangan2)
print("bilangan1**bilangan2 = ", bilangan1**bilangan2)

Hasil Program Python

Program Aritmatika Python
bilangan1+bilangan2 =  30
bilangan1*bilangan2 =  200
bilangan1-bilangan2 =  10
bilangan1/bilangan2 =  2.0
bilangan1//bilangan2 =  2
bilangan1%bilangan2 =  0
bilangan1**bilangan2 =  10240000000000




Bona Pasogit
Bona Pasogit Content Creator, Video Creator and Writer

Posting Komentar untuk "Program Python Operator Aritmatika"

close