program qbasic

 

 

 

 

 

 

 

 

ini adalah contoh    pemograman q basic dalam membuat program dengan menggunakan syntax

 

 

 

 

 

 

ini hasil dari output pemograman kami

syntax program

CLS
10 FOR i = 1 TO 5
15 INPUT “nilai ulangan harian : “, a
20 INPUT “nilai uts : “, b
25 INPUT “nilai uas : “, c
30 LET d = (a + b + c) / 3
35 PRINT d
40 IF d >= 85 THEN
45 PRINT “ranking 1”;
50 ELSE
55 IF d >= 75 THEN
60 PRINT “ranking 2”
65 ELSE
70 IF d >= 60 THEN
75 PRINT “ranking 3”
80 ELSE
85 IF d >= 50 THEN
90 PRINT “ranking 4”
95 ELSE
100 PRINT “ranking 5”
105 END IF
110 END IF
115 END IF
120 END IF
125 NEXT i
130 END

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: