البرمجة بلغة الفيجول بيسك

604 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
604
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

البرمجة بلغة الفيجول بيسك

  1. 1. •– • •
  2. 2. .1.2.3
  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. 4. Const Const1 = Value • Const .1 Const1 .2 Value .3 •Const HighScor = 100
  5. 5. • •Dim name As StringConst HighScore = 100….….
  6. 6. .1.2.3
  7. 7. • Var1 = Value • Var1 .1 Value .2 •Dim name As String, grade As Singlename = “ ”grade = 48.5
  8. 8. (IF)(IF – THEN)IF condition THEN statements • True • •IF grade >= 50 THEN Text1 = “ ”
  9. 9. (IF)(IF – THEN – END IF)IF condition THEN …… Statements ......END IF • •IF grade >= 50 THEN Text1 = “ ” Text2 = “ ”END IF
  10. 10. (IF)(IF – THEN – ELSE)IF condition THEN …… Statements1 ......ELSE …… Statements2 ......END IF • •IF grade >= 50 THEN Text1 = “ ”ELSE Text1 = “ ”END IF
  11. 11. (IF)(IF – THEN – ELSEIF)IF condition THEN …… Statements1 ......ELSEIF condition THEN …… Statements2 ......ELSE ……END IF •
  12. 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. 13. GOTO •GOTO line •DIM name AS String, grade As Singlename = “ ”GOTO AA…..…..AA: grade = 48.5 •
  14. 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

×