• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
332
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
11
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. •– • •
  • 2. .1.2.3
  • 3. DIM Var1 As Type Dim .1 Var1 .2 As .3 Type .4 •Dim name As StringDim num As Integer, age As Integer
  • 4. Const Const1 = Value • Const .1 Const1 .2 Value .3 •Const HighScor = 100
  • 5. • •Dim name As StringConst HighScore = 100….….
  • 6. .1.2.3
  • 7. • Var1 = Value • Var1 .1 Value .2 •Dim name As String, grade As Singlename = “ ”grade = 48.5
  • 8. (IF)(IF – THEN)IF condition THEN statements • True • •IF grade >= 50 THEN Text1 = “ ”
  • 9. (IF)(IF – THEN – END IF)IF condition THEN …… Statements ......END IF • •IF grade >= 50 THEN Text1 = “ ” Text2 = “ ”END IF
  • 10. (IF)(IF – THEN – ELSE)IF condition THEN …… Statements1 ......ELSE …… Statements2 ......END IF • •IF grade >= 50 THEN Text1 = “ ”ELSE Text1 = “ ”END IF
  • 11. (IF)(IF – THEN – ELSEIF)IF condition THEN …… Statements1 ......ELSEIF condition THEN …… Statements2 ......ELSE ……END IF •
  • 12. (IF)(IF – THEN – ELSEIF) •IF grade >= 90 THEN Text1 = “ ”ELSEIF grade >= 80 THEN Text1 = “ ”ELSEIF grade >= 70 THEN Text1 = “ ”ELSEIF grade >= 60THEN Text1 = “ ”ELSE Text1 = “ ”END IF • ENDIF
  • 13. GOTO •GOTO line •DIM name AS String, grade As Singlename = “ ”GOTO AA…..…..AA: grade = 48.5 •
  • 14. GOTO •IF condition THEN GOTO line •IF grade >=90 THEN GOTO AIF grade <90 THEN GOTO BA: Text1 = “ ” GOTO CB: Text1 = “ ” GOTO CC: Print Text1 GOTO • GOTO