Professional Documents
Culture Documents
Tugas Algo 7
Tugas Algo 7
Problem 3
post-test
STEP 1. INPUT TO n
STEP 2. hasil 0
STEP 3. x <-- 1
STEP 4. REPEAT STEP 5 THROUGH 6
STEP 5. IF X < N THEN
EXIT
END IF
STEP 6. PRINT x
STEP 7. x <-- x + 1
STEP 8. jumlahbarang <-- hasil / n
STEP 9. PRINT jumlahbarang
STEP 10. STOP