BASIC First Program:
To write a program to display " Hello World " on screen.
Program:
10 CLS
20 PRINT " Hello World"
30 END
RUN
Explanation:
To write a program to display " Hello World " on screen.
Program:
10 CLS
20 PRINT " Hello World"
30 END
RUN
Explanation:
- Program starts with a line number 10.
- CLS is a statement for clearing screen for your program result.
- PRINT statement display the sentence "Hello World" on the screen without double qoutes.
- END inform the BASIC interperator that program come to end .
- RUN is a command thats why it is writen without line number .It inform interperator to execute the program.
Output:
Hello World
No comments:
Post a Comment