You are on page 1of 2

UTS BAHASA PEMROGRAMAN

NAMA : HANIF ALIFIAN MASSADI


NIM : 1211900023
PRODI : TEKNIK SIPIL (A)

2. a = int(input())
b = = int(input())
c= = int(input())
d= = int(input())
e= = int(input())
rata2= a+b+c+d+e/5

4. score=eval (input("nilai anda = "))


if score >= 80 :
print("grade A")
elif score >= 70 and score < 80
print("grade B")
elif score >= 60 and score < 70
print("grade C")
elif score >= 0 and score < 60
print("GAGAL")

5. x= list (map(int , input().split()


For i in range (x) = print(“perulangan ke – “, x [i] )
1.

MULAI

INPUT NILAI

NGITUNG

y=x2 + 4x + 3

Tampilkan Nilai

x dan y

ya

Hitung lagi?

tidak

Selesai

You might also like