def data():
nama = input("masukan nama anda : ")
kelas = input("masukan kelas anda : ")
npm = int(input("masukan npm anda : "))
nilai = int(input("masukan nilai anda : "))
print("++++++++++++++++++++++++++++++++++")
print("nama anda", nama)
print("npm anda", kelas)
print("kelas anda", npm)
print("grade nilai anda", nilai)
if nilai >= 90.0:
print("grade nilai anda : A")
elif nilai >= 80.0:
print("grade nilai anda : B")
elif nilai >= 70.0:
print("grade nilai anda : C")
elif nilai >= 60.0:
print("grade nilai anda : D")
else:
print("grade nilai anda : E")
data()
Like this:
Like Loading...
Related