SlideShare a Scribd company logo
1 of 17
VII CLASS
CHAPTER---->2
2. QBASIC
4/17/2019 1
CONTENTS
1) CONTROL STATEMENTS
2) LOOPS IN QBASIC
3) ARRAYS
4) LIBRARY FUNCTIONS
4/17/2019 2
1) CONTROL STATEMENTS
• THESE STATEMENTS ARE USED TO
CONTROL THE PROGRAM.
• THE VARIOUS CONTROL STATEMENTS
ARE :
IF….THEN
IF….THEN…ELSE
IF….THEN…ELSEIF
4/17/2019 3
IF….THEN
• IT IS USED TO CHECK THE CONDITION &
EXECUTE THE STATEMENTS.
• SYNTAX :
IF <CONDITION>
THEN
< SET OF STATEMENTS>
• EXAMPLE:
IF CLASS =7 THEN PRINT “SRI CHAITANYA”
IF CLASS <>7 THEN PRINT “ U R NOT 7TH CLASS”
4/17/2019 4
IF…THEN….ELSE
IT IS USED TO CHECK THE CONDITION & EXECUTE THE STATEMENTS,
IF COND FAILS ELSE PART STATEMENTS WLL BE EXECUTES
• SYNTAX :
IF <CONDITION>
THEN
<STATEMENTS>
ELSE
<STATEMENTS>
• EXAMPLE :::
• ELIGIBLE TO VOTE OR NOT
IF AGE>=18
THEN
PRINT “ U R ELIGIBLE “
ELSE
PRINT “U R ! ELIGIBLE
4/17/2019 5
IF….THEN…ELSEIF
IT IS USED WHEN THERE IS MORE NO. OF CONDITIONS TO CHECK.
• SYNTAX :::
IF <CONDITION>
THEN
<STATEMENTS>
ELSEIF
<STATEMENTS>
ELSE
<STATEMENTS>
END IF
• EXAMPLE :::
• TO CHECK GREATEST
NUMBER
IF NUM1 > NUM2 THEN
PRINT NUM1 IS > NUM2
ELSEIF NUM2 > NUM1 THEN
PRINT NUM2 IS > NUM1
ELSE
PRINT “ BOTH NUMBERS ARE
EQUAL”
END IF
4/17/2019 6
LOOPS IN QBASIC
•WHAT IS LOOP ?
•THE STATEMENTS WHICH ARE REPEATEDLY
EXECUTED ARE CALLED AS LOOPS.
•LOOPS ARE OF MAINLY 3 TYPES :
A) FOR…Next
B)DO While…Loop
C)While…Wend
4/17/2019 7
A)FOR…Next
THIS LOOP IS USED TO EXECUTE THE STATEMENTS WHICH ARE
REPEATED.
SYNTAX
For COUNTER= START TO END
STATEMENTS
NEXT COUNTER
HERE,
COUNTER----> VARIABLE NAME
START -----> INITIAL VALUE
END -----> FINAL VALUE
EXAMPLE
For a=20 to 10 step -1
Print a;
Next a;
End
O/P:::
20 19 18 17 16 15 14 13 12 11 10
4/17/2019 8
B)DO While…Loop
THIS LOOP IS USED TO EXECUTE THE STATEMENTS UNTILL
THE CONDITION IS TRUE.
SYNTAX
DO WHILE CONDITION
STATEMENTS
LOOP
EXAMPLE
• PRINT “ WELCOME TO SCTS ”.
Let a = 1
Do while a < = 5
Print “WELCOME TO SCTS”
A = a + 1
Loop
End
4/17/2019 9
c) While…Wend
THE STATEMENTS INSIDE OF THIS LOOP EXECUTES
UNTILL THE CONDITION IS FALSE.
SYNTAX
While condition
STATEMENTS
WEND
EXAMPLE
• DISPLAY SQUARE
NUMBERS FROM 1 TO 4.
X=1
While x < 5
Print x; ‘’ SQUARE ” X * X
X = X + 1
Wend
End
4/17/2019 10
ARRAYS
4/17/2019 11
WHAT IS AN ARRAY???
ANS)
AN ARRAY IS A LIST OF VARIABLES WHICH IS
OF SAME DATATYPE.
ARRAY
TWO DONE D
• THE ARRAY WHICH IS USED TO STORE DATA IN A
LINEAR FORM IS CALLED ONE D ARRAY.
• THE ARRAY WHICH IS USED TO STORE DATA IN A
TABULAR FORM IS CALLED TWO D ARRAY.
SYNTAX
DIM ARRAYNAME(SIZE) AS DATATYPE
WHERE,
DIM----> VARIABLE
SIZE----> TELL US THE TOTAL NO.OF ELEMENTS
4/17/2019 12
WHAT IS STRING ARRAY
THE COLLECTION OF CHARACTERS IS CALLED AS STRING.
ARRAY EXAMPLE:
Dim Num(2) AS Integer
Dim Sum AS Integer
Num(1) = 10
Num(2) = 20
Sum = Num(1) + Num(2)
Print Sum
O/P :
30
• STRING ARRAY EX:
Dim sname(5) as string
Sname(1) = “ SRI ”
Sname(2) = “ CHAITANYA”
Sname(3) = “ SCHOOL ”
Print Sname(3)
End
O/P:
SCHOOL
4/17/2019 13
LIBRARY FUNCTIONS
• THESE FUNCTIONS ARE USED IN A PROGRAM
TO PERFORM THE PREDEFINED TASKS.
• THERE ARE MAINLY 3 FUNCTIONS AVAILABLE IN
LIBRARY FUNCTIONS. THEY ARE:::
A)LEFT$
B)RIGHT$
C)MID$
4/17/2019 14
LEFT$
IT IS USED TO EXTRACT
LEFTSIDE
CHARACTERS.
EXAMPLE
Machine$=“computer”
Print Left$(machine$,3)
O/P:
COM
RIGHT$
IT IS USED TO EXTRACT
THE RIGHT SIDE
CHARACTERS.
EXAMPLE
Machine$=“computer”
Print
Right$(machine$,3)
O/P :
TER
4/17/2019 15
MID$
• THIS FUNCTION IS MAINLY USED TO
EXTRACT SOME PORTION OF THE
STRING.
EXAMPLE :
machine$ = “computer”
Print mid$(machine$, 3,4)
O/P :
HERE,
3------> STARTING POINT OF EXTRACTION
4------> NUMBER OF CHARACTERS TO BE EXTRACT.
4/17/2019 16
MPUT
THANK U ALL
UR’S
VALI.. SIR
4/17/2019 17

More Related Content

What's hot (20)

Computer virus
Computer virusComputer virus
Computer virus
 
Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader Explained
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
RAM/ROM and its TYPES
RAM/ROM and its TYPESRAM/ROM and its TYPES
RAM/ROM and its TYPES
 
Installing and uninstalling computer software
Installing and uninstalling computer softwareInstalling and uninstalling computer software
Installing and uninstalling computer software
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Qbasic notes
Qbasic notesQbasic notes
Qbasic notes
 
High level and Low level Language
High level and Low level Language High level and Low level Language
High level and Low level Language
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
Introduction to qbasic
Introduction to qbasicIntroduction to qbasic
Introduction to qbasic
 
Programming language
Programming languageProgramming language
Programming language
 
Introduction to loops
Introduction to loopsIntroduction to loops
Introduction to loops
 
Interpreter
InterpreterInterpreter
Interpreter
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Language processor
Language processorLanguage processor
Language processor
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Booting
BootingBooting
Booting
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Computer languages
Computer languagesComputer languages
Computer languages
 

More from yousufvali

More from yousufvali (20)

Social networking
Social networkingSocial networking
Social networking
 
E mail
E mailE mail
E mail
 
Purchasing a-computer
Purchasing a-computerPurchasing a-computer
Purchasing a-computer
 
Communication through internet
Communication through internetCommunication through internet
Communication through internet
 
Internet services
Internet servicesInternet services
Internet services
 
Internet
InternetInternet
Internet
 
Troubleshooting
TroubleshootingTroubleshooting
Troubleshooting
 
Gimp
GimpGimp
Gimp
 
Multimedia
MultimediaMultimedia
Multimedia
 
Mobile operating-system
Mobile operating-systemMobile operating-system
Mobile operating-system
 
Dhtml
DhtmlDhtml
Dhtml
 
C language
C languageC language
C language
 
Ms access
Ms accessMs access
Ms access
 
Osi model
Osi modelOsi model
Osi model
 
Network topology
Network topologyNetwork topology
Network topology
 
Networks
NetworksNetworks
Networks
 
Webconcepts
WebconceptsWebconcepts
Webconcepts
 
Network concepts
Network conceptsNetwork concepts
Network concepts
 
Wordpad
WordpadWordpad
Wordpad
 
Computer basics
Computer basicsComputer basics
Computer basics
 

Recently uploaded

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 

Recently uploaded (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 

Qbasic

  • 2. CONTENTS 1) CONTROL STATEMENTS 2) LOOPS IN QBASIC 3) ARRAYS 4) LIBRARY FUNCTIONS 4/17/2019 2
  • 3. 1) CONTROL STATEMENTS • THESE STATEMENTS ARE USED TO CONTROL THE PROGRAM. • THE VARIOUS CONTROL STATEMENTS ARE : IF….THEN IF….THEN…ELSE IF….THEN…ELSEIF 4/17/2019 3
  • 4. IF….THEN • IT IS USED TO CHECK THE CONDITION & EXECUTE THE STATEMENTS. • SYNTAX : IF <CONDITION> THEN < SET OF STATEMENTS> • EXAMPLE: IF CLASS =7 THEN PRINT “SRI CHAITANYA” IF CLASS <>7 THEN PRINT “ U R NOT 7TH CLASS” 4/17/2019 4
  • 5. IF…THEN….ELSE IT IS USED TO CHECK THE CONDITION & EXECUTE THE STATEMENTS, IF COND FAILS ELSE PART STATEMENTS WLL BE EXECUTES • SYNTAX : IF <CONDITION> THEN <STATEMENTS> ELSE <STATEMENTS> • EXAMPLE ::: • ELIGIBLE TO VOTE OR NOT IF AGE>=18 THEN PRINT “ U R ELIGIBLE “ ELSE PRINT “U R ! ELIGIBLE 4/17/2019 5
  • 6. IF….THEN…ELSEIF IT IS USED WHEN THERE IS MORE NO. OF CONDITIONS TO CHECK. • SYNTAX ::: IF <CONDITION> THEN <STATEMENTS> ELSEIF <STATEMENTS> ELSE <STATEMENTS> END IF • EXAMPLE ::: • TO CHECK GREATEST NUMBER IF NUM1 > NUM2 THEN PRINT NUM1 IS > NUM2 ELSEIF NUM2 > NUM1 THEN PRINT NUM2 IS > NUM1 ELSE PRINT “ BOTH NUMBERS ARE EQUAL” END IF 4/17/2019 6
  • 7. LOOPS IN QBASIC •WHAT IS LOOP ? •THE STATEMENTS WHICH ARE REPEATEDLY EXECUTED ARE CALLED AS LOOPS. •LOOPS ARE OF MAINLY 3 TYPES : A) FOR…Next B)DO While…Loop C)While…Wend 4/17/2019 7
  • 8. A)FOR…Next THIS LOOP IS USED TO EXECUTE THE STATEMENTS WHICH ARE REPEATED. SYNTAX For COUNTER= START TO END STATEMENTS NEXT COUNTER HERE, COUNTER----> VARIABLE NAME START -----> INITIAL VALUE END -----> FINAL VALUE EXAMPLE For a=20 to 10 step -1 Print a; Next a; End O/P::: 20 19 18 17 16 15 14 13 12 11 10 4/17/2019 8
  • 9. B)DO While…Loop THIS LOOP IS USED TO EXECUTE THE STATEMENTS UNTILL THE CONDITION IS TRUE. SYNTAX DO WHILE CONDITION STATEMENTS LOOP EXAMPLE • PRINT “ WELCOME TO SCTS ”. Let a = 1 Do while a < = 5 Print “WELCOME TO SCTS” A = a + 1 Loop End 4/17/2019 9
  • 10. c) While…Wend THE STATEMENTS INSIDE OF THIS LOOP EXECUTES UNTILL THE CONDITION IS FALSE. SYNTAX While condition STATEMENTS WEND EXAMPLE • DISPLAY SQUARE NUMBERS FROM 1 TO 4. X=1 While x < 5 Print x; ‘’ SQUARE ” X * X X = X + 1 Wend End 4/17/2019 10
  • 11. ARRAYS 4/17/2019 11 WHAT IS AN ARRAY??? ANS) AN ARRAY IS A LIST OF VARIABLES WHICH IS OF SAME DATATYPE. ARRAY TWO DONE D
  • 12. • THE ARRAY WHICH IS USED TO STORE DATA IN A LINEAR FORM IS CALLED ONE D ARRAY. • THE ARRAY WHICH IS USED TO STORE DATA IN A TABULAR FORM IS CALLED TWO D ARRAY. SYNTAX DIM ARRAYNAME(SIZE) AS DATATYPE WHERE, DIM----> VARIABLE SIZE----> TELL US THE TOTAL NO.OF ELEMENTS 4/17/2019 12
  • 13. WHAT IS STRING ARRAY THE COLLECTION OF CHARACTERS IS CALLED AS STRING. ARRAY EXAMPLE: Dim Num(2) AS Integer Dim Sum AS Integer Num(1) = 10 Num(2) = 20 Sum = Num(1) + Num(2) Print Sum O/P : 30 • STRING ARRAY EX: Dim sname(5) as string Sname(1) = “ SRI ” Sname(2) = “ CHAITANYA” Sname(3) = “ SCHOOL ” Print Sname(3) End O/P: SCHOOL 4/17/2019 13
  • 14. LIBRARY FUNCTIONS • THESE FUNCTIONS ARE USED IN A PROGRAM TO PERFORM THE PREDEFINED TASKS. • THERE ARE MAINLY 3 FUNCTIONS AVAILABLE IN LIBRARY FUNCTIONS. THEY ARE::: A)LEFT$ B)RIGHT$ C)MID$ 4/17/2019 14
  • 15. LEFT$ IT IS USED TO EXTRACT LEFTSIDE CHARACTERS. EXAMPLE Machine$=“computer” Print Left$(machine$,3) O/P: COM RIGHT$ IT IS USED TO EXTRACT THE RIGHT SIDE CHARACTERS. EXAMPLE Machine$=“computer” Print Right$(machine$,3) O/P : TER 4/17/2019 15
  • 16. MID$ • THIS FUNCTION IS MAINLY USED TO EXTRACT SOME PORTION OF THE STRING. EXAMPLE : machine$ = “computer” Print mid$(machine$, 3,4) O/P : HERE, 3------> STARTING POINT OF EXTRACTION 4------> NUMBER OF CHARACTERS TO BE EXTRACT. 4/17/2019 16 MPUT
  • 17. THANK U ALL UR’S VALI.. SIR 4/17/2019 17