Page 13 - Pengenalan Bahasa Basic
P. 13
2. Tuliskan hasil pelaksanaan program di bawah ini!
a) 10 LET A = 3: LET B = 5 b) 10 A = 4: B = 6
20 LET C = A + B 20 C = A + B: D = C
30 PRINT A: PRINT B 30 PRINT A: PRINT B: PRINT C
40 PRINT C 40 PRINT D
50 END 50 END
3. Tuliskan hasil pelaksanaan program di bawah ini!
a) 10 LET A = 15 b) 10 LET A = 15
20 PRINT “A Sama dengan “;A 20 PRINT “A Sama dengan; A”
30 END 30 END
c) 10 LET A = 15 d) 10 LET A$ = ”What is your name? “
20 LET B = 30 20 LET B$ = “My name is Pengemis Ilmu Harian”
30 PRINT B; “adalah kelipatan “;A 30 PRINT A$
40 END 40 PRINT B$
50 END
Program Turbo Basic 10 Edi Supriyanto, S. Pd.