SlideShare a Scribd company logo
1 of 9
ET-251
BY: ENGR. SALMAN HAMEED
Getting started with gw basic
 Start new version of BASIC just type “GW-BASIC’’
 This leads interpreter BASIC and You will see OK prompt
 Now type the following two lines
10 PRINT “Hello There’’
20 GOTO 10
 To test its output type RUN
 To save this program
SAVE “Hello’’
Getting started with gw basic
 Then leave the BASIC interpreter by typing system or alt+X
 To check your program or save program DIR h *.*
 To RUN the program type
BASIC A Hello
RUN “Hello’’
PRINT Statement
 Used to transmit or string output data on monitor’s screen
 Consist of a statement numbers, keyword PRINT and a list of output items
 The successive items must be separated by commas
Example:
100 PRINT X,Y,Z
110 PRINT “X= ‘’ X; “M=‘’ ; Y
120 PRINT “NAME’’ N$, “Address” A$
130 PRINT
RULES OF PRINT Statement
 Each PRINT Statement begins a new line of output
 Two or more lines generated by single INPUT Statement
 PRINT Statement without data items print a blank line.
 EXAMPLE:
10 LET X1=10
20 LET X2=20
30 LET X3=30
40 LET X4=40
50 LET X5=50
60 LET X6=100
70 PRINT X1, X2, X3, X4, X5, X6
OUTPUT:
10 20 30 40 50
100
RULES OF PRINT Statement
 EXAMPLE:
70 PRINT X1,X2,X3
80 PRINT X4, X5,X6
 OUTPUT:
10 20 30
40 50 100
RULES OF PRINT Statement
 EXAMPLE:
10 LET A=3
20 LET B=6
30 LET C=2
40 LET D=7
50 LET E=9
60 LET F=1
70 LET G=8
80 PRINT A,B,C,D,E
100 PRINT F,,,G
OUTPUT:
3 6 2 7 9
1 8
RULES OF PRINT Statement
 EXAMPLE:
10 LET A1=11
20 LET A2=12
30 LET A3=13
40 LET A4=14
50 LET A5=15
60 LET A6=16
70 LET A7=17
80 LET A8=18
90 PRINT A1; A2; A3; A4; A5; A6; A7; A8
 OUTPUT:
11 12 13 14 15 16 17 18

More Related Content

More from SalmanHameed26 (10)

UPS.pptx
UPS.pptxUPS.pptx
UPS.pptx
 
The Diode_Lecture2.ppt
The Diode_Lecture2.pptThe Diode_Lecture2.ppt
The Diode_Lecture2.ppt
 
Chapter 02.pdf
Chapter 02.pdfChapter 02.pdf
Chapter 02.pdf
 
ProgrammingIntroduction.ppt
ProgrammingIntroduction.pptProgrammingIntroduction.ppt
ProgrammingIntroduction.ppt
 
SemiconductorBasics_Lecture1.pdf
SemiconductorBasics_Lecture1.pdfSemiconductorBasics_Lecture1.pdf
SemiconductorBasics_Lecture1.pdf
 
Lecture 1& 2.pptx
Lecture 1& 2.pptxLecture 1& 2.pptx
Lecture 1& 2.pptx
 
FlipFlopsLatches1 (3).ppt
FlipFlopsLatches1 (3).pptFlipFlopsLatches1 (3).ppt
FlipFlopsLatches1 (3).ppt
 
MUX and Demux.ppt
MUX and Demux.pptMUX and Demux.ppt
MUX and Demux.ppt
 
lec7.ppt
lec7.pptlec7.ppt
lec7.ppt
 
Basic Electrical Theory.ppt
Basic Electrical Theory.pptBasic Electrical Theory.ppt
Basic Electrical Theory.ppt
 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Recently uploaded (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

ET_251_1.pptx

  • 1.
  • 3. Getting started with gw basic  Start new version of BASIC just type “GW-BASIC’’  This leads interpreter BASIC and You will see OK prompt  Now type the following two lines 10 PRINT “Hello There’’ 20 GOTO 10  To test its output type RUN  To save this program SAVE “Hello’’
  • 4. Getting started with gw basic  Then leave the BASIC interpreter by typing system or alt+X  To check your program or save program DIR h *.*  To RUN the program type BASIC A Hello RUN “Hello’’
  • 5. PRINT Statement  Used to transmit or string output data on monitor’s screen  Consist of a statement numbers, keyword PRINT and a list of output items  The successive items must be separated by commas Example: 100 PRINT X,Y,Z 110 PRINT “X= ‘’ X; “M=‘’ ; Y 120 PRINT “NAME’’ N$, “Address” A$ 130 PRINT
  • 6. RULES OF PRINT Statement  Each PRINT Statement begins a new line of output  Two or more lines generated by single INPUT Statement  PRINT Statement without data items print a blank line.  EXAMPLE: 10 LET X1=10 20 LET X2=20 30 LET X3=30 40 LET X4=40 50 LET X5=50 60 LET X6=100 70 PRINT X1, X2, X3, X4, X5, X6 OUTPUT: 10 20 30 40 50 100
  • 7. RULES OF PRINT Statement  EXAMPLE: 70 PRINT X1,X2,X3 80 PRINT X4, X5,X6  OUTPUT: 10 20 30 40 50 100
  • 8. RULES OF PRINT Statement  EXAMPLE: 10 LET A=3 20 LET B=6 30 LET C=2 40 LET D=7 50 LET E=9 60 LET F=1 70 LET G=8 80 PRINT A,B,C,D,E 100 PRINT F,,,G OUTPUT: 3 6 2 7 9 1 8
  • 9. RULES OF PRINT Statement  EXAMPLE: 10 LET A1=11 20 LET A2=12 30 LET A3=13 40 LET A4=14 50 LET A5=15 60 LET A6=16 70 LET A7=17 80 LET A8=18 90 PRINT A1; A2; A3; A4; A5; A6; A7; A8  OUTPUT: 11 12 13 14 15 16 17 18