"""
Tugas 4:
Buatlah program jika :
a. temp <= 28 --> akan tampil "Suhu <= 28 Derajat"
b. 28 < temp <= 45--> akan tampil "Suhu Diantara 29 s.d 45 Derajat"
c. 45 < temp <= 75 --> akan tampil "Suhu Diantara 46 s.d 75 Derajat"
d. temp > 75 --> akan tampil "Suhu > 75 Derajat"
"""
from machine import Pin
from time import sleep
led = Pin(12, Pin.OUT)
temp = 46
#Menggunakan if
if temp <= 28:
print("Suhu <= 28 Derajat")
if temp > 28 and temp <= 45:
print("Suhu Diantara 29 s.d 45 Derajat")
if temp > 45 and temp <= 75:
print("Suhu Diantara 46 s.d 75 Derajat")
else:
print("Suhu > 75 Derajat")
"""
#perulangan menggunakan while
while True:
led.on()
print("LED ON")
sleep(1)
led.off()
print("LED OFF")
sleep(1)
print("Hasil Kurang : 34")
print(c)
print("Hasil bagi : 6")
print(int(h))
print("Hasil Modulus : 4 ")
print(i)
"""