programe to Demonstrate the Read and Data Statements
Here is the gwbasic program to demonstrator the Read and Data statements. Coding is as under:
GW Basic Code
10 cls
20 Read A,B,C, A$, B$,C$
30 Data 58,70,85
40 Print A$ TAB(20) " Obtained " ; A ; " Marks"
50 Print B$ TAB(20) " Obtained " ; B ; " Marks"
60 Print C$ TAB(20) " Obtained " ; C ; " Marks"
70 Data Tahir, Umar, Tariq
80 End
Output of the Code
Tahir Obtained 58 Marks
Umar Obtained 70 Marks
Tariq Obtained 85 Marks
0 comments:
Post a Comment