Professional Documents
Culture Documents
Pemstruk Brah
Pemstruk Brah
NIM : 165090801111006
TUGAS PERBAIKAN PEMROGRAMAN TERSTRUKTUR
SOAL :
Input : n
hitung : S1 = 1 + 2 + 3 + …. + n
Dalam loop for , while & do while
S2 = 13 + 23 + 33 + ⋯ + 𝑛3
Output : 𝑆12 , 𝑆2
FOR
WHILE
DO WHILE