home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-02-09 | 489 b | 26 lines |
- ' Question Entry Program
- ' for ZEST by Andrew Welsh
- '
- Screen Open 0,640,100,4,Hires
- Cls 0
- Paper 0
- Global AN$,ANS$
- Open Random 1,"Various_Source:Module-1"
- Field 1,100 As QUEST$,50 As ANS$
- '
- N=30 : Rem the number of questions already entered !!
- '
- QU=0
- Do
- IN:
- Print "Total Questions = :",N
- Print "Questions Entered So Far :",QU
- Input "Question : ";QUEST$
- Exit If QUEST$=""
- Input "Answer : ";ANS$
- Input "Are YOU Sure ?";X$
- If(X$="N") or(X$="n") Then Goto IN
- Put 1,N
- Inc N
- QU=QU+1
- Loop