Algorithm and flowchart

Rabin BK
Rabin BKStudent at College Of Applied Business (Studying BSc.CSIT)
Algorithm and Flowchart
1
Presented by: The Anonymous
BSc.CSIT 1st semester
What is algorithm ?
Properties of algorithm
What is flowchart ?
Merits of flowchart
Demerits of flowchart
Algorithm and Flowchart in Coding
References
Queries
2
What is an algorithm ?
Named after Persian mathematician Mohammad Al-
Khwarizmi
A sequential solution of any problem
Written in human understandable form
Requires a clear understanding of the problem
3
Example:
1. Algorithm for sum of two numbers
Step 1: Start
Step 2: Enter two numbers in a and b
Step 3: Add a and b and store in c
Step 4: Display c
Step 5: End
4
2. Algorithm to check whether the input number is
even or odd
Step 1: Start
Step 2: Enter a number in a
Step 3: Check if it is even or odd
Step 4: If even print “even” (a mod 2 = 0 )
Step 5: Else print “odd”
Step 6: End
5
Properties of algorithm
Finiteness
Properly defined
Input
Output
Effectiveness
Independent to any other programming language
6
7
Now moving on to next
programming tool
What is flowchart?
Diagrammatic representation of algorithm
An important programming tool
Solving a problem using figures
Different figures having different functions
8
Merits of flowchart
•Easy to explain program logic
•Makes coding effective and faster
•Effective communication
•Different symbols used
•Serve as documentation
•Easy to detect, locate and remove bugs in a program
9
Time consuming and monotonous job
Difficult to maintain
Occupies space while documentation
Translation to computer program is difficult
10
11
But what
might be the
symbols used
in flowchart?
Symbol Function Description
Start/End Start and end point
Input/output Input and output operations
Processing operation Editing and calculation of data
Decision Check logical condition
Connector Indicates logical flow from one
page to another
Direction of logic Direction of flow of logic
Comment Indicates any comments for
explanatory notes
12
Example 1: Flowchart add sum of two numbers
13
START
Input a and b
C = a + b
Display c
END
User can enter
any two numbers
Example 2: Flowchart to check whether the input number is
even or odd
14
START
Accept a number
Divide it by 2
END
Is remainder = 0 ?
Display odd Display even
YesNo
START
Accept a number
15
Using Algorithm and Flowchart in Coding
Coding
Enter numbers in a and b: 5
6
Displayed c: 11
References:
Websites:
google.com
wikipedia.com
linkedin.com
External sources:
Text book: Fundamentals of computer programming
16
Queries
17
1 de 17

Recomendados

Algorithms and Flowcharts por
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and FlowchartsDeva Singh
309.9K vistas31 diapositivas
Flowcharts and algorithms por
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
5.9K vistas12 diapositivas
Algorithm and flowchart por
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
7.1K vistas34 diapositivas
Algorithm and flowchart por
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartElizabeth de Leon Aler
87.3K vistas9 diapositivas
Algorithm por
AlgorithmAlgorithm
AlgorithmIHTISHAM UL HAQ
7.7K vistas16 diapositivas
Algorithms, flow charts and pseudocodes por
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesSatveer Mann
377 vistas15 diapositivas

Más contenido relacionado

La actualidad más candente

Algorithm and pseudo codes por
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codeshermiraguilar
48.2K vistas44 diapositivas
What is an algorithm? por
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
18.5K vistas33 diapositivas
Notes of c programming 1st unit BCA I SEM por
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEMMansi Tyagi
150K vistas25 diapositivas
Unit 1-problem solving with algorithm por
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithmrajkumar1631010038
6.9K vistas26 diapositivas
Introduction to data structures and Algorithm por
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and AlgorithmDhaval Kaneria
45.6K vistas73 diapositivas
Algorithm and flowchart por
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart Shivam Sharma
168 vistas12 diapositivas

La actualidad más candente(20)

Algorithm and pseudo codes por hermiraguilar
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
hermiraguilar48.2K vistas
What is an algorithm? por Angela DeHart
What is an algorithm?What is an algorithm?
What is an algorithm?
Angela DeHart18.5K vistas
Notes of c programming 1st unit BCA I SEM por Mansi Tyagi
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
Mansi Tyagi150K vistas
Introduction to data structures and Algorithm por Dhaval Kaneria
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
Dhaval Kaneria45.6K vistas
Algorithm and flowchart por Shivam Sharma
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart
Shivam Sharma168 vistas
Basic programming concepts por salmankhan570
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan57010.8K vistas
Introduction to flowchart por Jordan Delacruz
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
Jordan Delacruz70.8K vistas
Unit 1. Problem Solving with Computer por Ashim Lamichhane
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
Ashim Lamichhane35.3K vistas
Algorithm and c language por kamalbeydoun
Algorithm and c languageAlgorithm and c language
Algorithm and c language
kamalbeydoun1.3K vistas
10. switch case por Way2itech
10. switch case10. switch case
10. switch case
Way2itech7.9K vistas
Expression and Operartor In C Programming por Kamal Acharya
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming
Kamal Acharya4.1K vistas
Flowchart and algorithem por ehsanullah786
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
ehsanullah7863.3K vistas
Operators in C Programming por programming9
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
programming937.8K vistas
Variables in C Programming por programming9
Variables in C ProgrammingVariables in C Programming
Variables in C Programming
programming99.1K vistas
High level and Low level Language por adnan usmani
High level and Low level Language High level and Low level Language
High level and Low level Language
adnan usmani4.4K vistas

Destacado

3 algorithm-and-flowchart por
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchartRohit Shrivastava
15.1K vistas37 diapositivas
Flowchart and algorithm por
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmSayali Shivarkar
69.8K vistas10 diapositivas
Algorithm and flowchart2010 por
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010Jordan Delacruz
22.5K vistas12 diapositivas
Flowchart Power Point por
Flowchart Power PointFlowchart Power Point
Flowchart Power PointSlideShop.com
974 vistas16 diapositivas
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart por
C Prog. - Introduction to Hardware, Software, Algorithm & FlowchartC Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchartvinay arora
9K vistas43 diapositivas
Flowchart por
FlowchartFlowchart
FlowchartGautam Roy
15.2K vistas73 diapositivas

Destacado(20)

Algorithm and flowchart2010 por Jordan Delacruz
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
Jordan Delacruz22.5K vistas
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart por vinay arora
C Prog. - Introduction to Hardware, Software, Algorithm & FlowchartC Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
vinay arora9K vistas
Flowchart por Gautam Roy
FlowchartFlowchart
Flowchart
Gautam Roy15.2K vistas
Programming process and flowchart por hermiraguilar
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
hermiraguilar9.6K vistas
Pseudocode-Flowchart por lotlot
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchart
lotlot38.5K vistas
Flowchart Diagram Templates by Creately por Creately
Flowchart Diagram Templates by CreatelyFlowchart Diagram Templates by Creately
Flowchart Diagram Templates by Creately
Creately5.7K vistas
Flowchart por HRdebajit
FlowchartFlowchart
Flowchart
HRdebajit23.1K vistas
Algorithmsandflowcharts1 por luhkahreth
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
luhkahreth49.7K vistas
Best Techniques To Design Programs - Program Designing Techniques por Tech
Best Techniques To Design Programs - Program Designing TechniquesBest Techniques To Design Programs - Program Designing Techniques
Best Techniques To Design Programs - Program Designing Techniques
Tech849 vistas
Microcontroller lec 3 por Ibrahim Reda
Microcontroller  lec 3Microcontroller  lec 3
Microcontroller lec 3
Ibrahim Reda373 vistas
Flowchart w/program structure por nasa9084
Flowchart w/program structureFlowchart w/program structure
Flowchart w/program structure
nasa9084 424 vistas
Best Flow Chart Ever por skillfulyards
Best Flow Chart EverBest Flow Chart Ever
Best Flow Chart Ever
skillfulyards1.2K vistas
Creating a program from flowchart por Max Friel
Creating a program from flowchartCreating a program from flowchart
Creating a program from flowchart
Max Friel9K vistas

Similar a Algorithm and flowchart

flowchart & algorithms por
flowchart & algorithmsflowchart & algorithms
flowchart & algorithmsStudent
7K vistas31 diapositivas
Programming flowcharts for C Language por
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C LanguageAryan Ajmer
44.2K vistas22 diapositivas
lecture 5 por
 lecture 5 lecture 5
lecture 5umardanjumamaiwada
191 vistas25 diapositivas
Introduction to computer science por
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
86 vistas25 diapositivas
Chap6 por
Chap6Chap6
Chap6artipradhan
2.7K vistas21 diapositivas
Algorithm pseudocode flowchart program notes por
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notesArghodeepPaul
61 vistas6 diapositivas

Similar a Algorithm and flowchart(20)

flowchart & algorithms por Student
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student7K vistas
Programming flowcharts for C Language por Aryan Ajmer
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C Language
Aryan Ajmer44.2K vistas
Algorithm pseudocode flowchart program notes por ArghodeepPaul
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notes
ArghodeepPaul61 vistas
AlgorithmAndFlowChart.pdf por SusieMaestre1
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
SusieMaestre1118 vistas
algorithms and flow chart overview.pdf por AmanPratik11
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
AmanPratik11189 vistas
Algorithm and flowchart.pptx por MaheShiva
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
MaheShiva491 vistas
Algorithm Design & Implementation por Gaditek
Algorithm Design & ImplementationAlgorithm Design & Implementation
Algorithm Design & Implementation
Gaditek3.9K vistas
Output And Lt Essay por Jana Clark
Output And Lt EssayOutput And Lt Essay
Output And Lt Essay
Jana Clark2 vistas
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx por AbdelrahmanRagab36
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab3623 vistas
learn computer science.ppt por faithola1
learn computer science.pptlearn computer science.ppt
learn computer science.ppt
faithola13 vistas
programming concept por Nehabhy
programming conceptprogramming concept
programming concept
Nehabhy900 vistas
final Unit 1-1.pdf por prakashvs7
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdf
prakashvs73 vistas

Más de Rabin BK

Artificial Intelligence in E-commerce por
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerceRabin BK
1K vistas11 diapositivas
Three address code generation por
Three address code generationThree address code generation
Three address code generationRabin BK
672 vistas10 diapositivas
Consumer Oriented Application, Mercantile process and Mercantile models por
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile modelsRabin BK
4.1K vistas9 diapositivas
Clang compiler ` por
Clang compiler `Clang compiler `
Clang compiler `Rabin BK
275 vistas10 diapositivas
Simple Mail Transfer Protocol por
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolRabin BK
175 vistas8 diapositivas
HTML text formatting tags por
HTML text formatting tagsHTML text formatting tags
HTML text formatting tagsRabin BK
886 vistas7 diapositivas

Más de Rabin BK(20)

Artificial Intelligence in E-commerce por Rabin BK
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerce
Rabin BK1K vistas
Three address code generation por Rabin BK
Three address code generationThree address code generation
Three address code generation
Rabin BK672 vistas
Consumer Oriented Application, Mercantile process and Mercantile models por Rabin BK
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile models
Rabin BK4.1K vistas
Clang compiler ` por Rabin BK
Clang compiler `Clang compiler `
Clang compiler `
Rabin BK275 vistas
Simple Mail Transfer Protocol por Rabin BK
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
Rabin BK175 vistas
HTML text formatting tags por Rabin BK
HTML text formatting tagsHTML text formatting tags
HTML text formatting tags
Rabin BK886 vistas
Data encryption in database management system por Rabin BK
Data encryption in database management systemData encryption in database management system
Data encryption in database management system
Rabin BK1.2K vistas
Object Relational Database Management System(ORDBMS) por Rabin BK
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
Rabin BK2.5K vistas
Kolmogorov Smirnov por Rabin BK
Kolmogorov SmirnovKolmogorov Smirnov
Kolmogorov Smirnov
Rabin BK861 vistas
Job sequencing in Data Strcture por Rabin BK
Job sequencing in Data StrctureJob sequencing in Data Strcture
Job sequencing in Data Strcture
Rabin BK550 vistas
Stack Data Structure por Rabin BK
Stack Data StructureStack Data Structure
Stack Data Structure
Rabin BK280 vistas
Bluetooth por Rabin BK
BluetoothBluetooth
Bluetooth
Rabin BK50 vistas
Data Science por Rabin BK
Data ScienceData Science
Data Science
Rabin BK199 vistas
Graphics_3D viewing por Rabin BK
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
Rabin BK392 vistas
Neural Netwrok por Rabin BK
Neural NetwrokNeural Netwrok
Neural Netwrok
Rabin BK139 vistas
Watermarking in digital images por Rabin BK
Watermarking in digital imagesWatermarking in digital images
Watermarking in digital images
Rabin BK51 vistas
Heun's Method por Rabin BK
Heun's MethodHeun's Method
Heun's Method
Rabin BK2K vistas
Mutual Exclusion por Rabin BK
Mutual ExclusionMutual Exclusion
Mutual Exclusion
Rabin BK355 vistas
Systems Usage por Rabin BK
Systems UsageSystems Usage
Systems Usage
Rabin BK19 vistas
Manager of a company por Rabin BK
Manager of a companyManager of a company
Manager of a company
Rabin BK62 vistas

Último

EILO EXCURSION PROGRAMME 2023 por
EILO EXCURSION PROGRAMME 2023EILO EXCURSION PROGRAMME 2023
EILO EXCURSION PROGRAMME 2023info33492
109 vistas40 diapositivas
Meet the Bible por
Meet the BibleMeet the Bible
Meet the BibleSteve Thomason
44 vistas80 diapositivas
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptx por
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptxGopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptxDebapriya Chakraborty
695 vistas81 diapositivas
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx por
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxPharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxMs. Pooja Bhandare
113 vistas51 diapositivas
Narration lesson plan por
Narration lesson planNarration lesson plan
Narration lesson planTARIQ KHAN
61 vistas11 diapositivas
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively por
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyPECB
623 vistas18 diapositivas

Último(20)

EILO EXCURSION PROGRAMME 2023 por info33492
EILO EXCURSION PROGRAMME 2023EILO EXCURSION PROGRAMME 2023
EILO EXCURSION PROGRAMME 2023
info33492109 vistas
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx por Ms. Pooja Bhandare
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxPharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Ms. Pooja Bhandare113 vistas
Narration lesson plan por TARIQ KHAN
Narration lesson planNarration lesson plan
Narration lesson plan
TARIQ KHAN61 vistas
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively por PECB
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
PECB 623 vistas
How to empty an One2many field in Odoo por Celine George
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in Odoo
Celine George87 vistas
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... por Ms. Pooja Bhandare
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Ms. Pooja Bhandare133 vistas
11.28.23 Social Capital and Social Exclusion.pptx por mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239312 vistas
Relationship of psychology with other subjects. por palswagata2003
Relationship of psychology with other subjects.Relationship of psychology with other subjects.
Relationship of psychology with other subjects.
palswagata200352 vistas
Retail Store Scavenger Hunt.pptx por jmurphy154
Retail Store Scavenger Hunt.pptxRetail Store Scavenger Hunt.pptx
Retail Store Scavenger Hunt.pptx
jmurphy15446 vistas
CUNY IT Picciano.pptx por apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 vistas
GCSE Spanish por WestHatch
GCSE SpanishGCSE Spanish
GCSE Spanish
WestHatch48 vistas
The basics - information, data, technology and systems.pdf por JonathanCovena1
The basics - information, data, technology and systems.pdfThe basics - information, data, technology and systems.pdf
The basics - information, data, technology and systems.pdf
JonathanCovena1146 vistas

Algorithm and flowchart

  • 1. Algorithm and Flowchart 1 Presented by: The Anonymous BSc.CSIT 1st semester
  • 2. What is algorithm ? Properties of algorithm What is flowchart ? Merits of flowchart Demerits of flowchart Algorithm and Flowchart in Coding References Queries 2
  • 3. What is an algorithm ? Named after Persian mathematician Mohammad Al- Khwarizmi A sequential solution of any problem Written in human understandable form Requires a clear understanding of the problem 3
  • 4. Example: 1. Algorithm for sum of two numbers Step 1: Start Step 2: Enter two numbers in a and b Step 3: Add a and b and store in c Step 4: Display c Step 5: End 4
  • 5. 2. Algorithm to check whether the input number is even or odd Step 1: Start Step 2: Enter a number in a Step 3: Check if it is even or odd Step 4: If even print “even” (a mod 2 = 0 ) Step 5: Else print “odd” Step 6: End 5
  • 6. Properties of algorithm Finiteness Properly defined Input Output Effectiveness Independent to any other programming language 6
  • 7. 7 Now moving on to next programming tool
  • 8. What is flowchart? Diagrammatic representation of algorithm An important programming tool Solving a problem using figures Different figures having different functions 8
  • 9. Merits of flowchart •Easy to explain program logic •Makes coding effective and faster •Effective communication •Different symbols used •Serve as documentation •Easy to detect, locate and remove bugs in a program 9
  • 10. Time consuming and monotonous job Difficult to maintain Occupies space while documentation Translation to computer program is difficult 10
  • 11. 11 But what might be the symbols used in flowchart?
  • 12. Symbol Function Description Start/End Start and end point Input/output Input and output operations Processing operation Editing and calculation of data Decision Check logical condition Connector Indicates logical flow from one page to another Direction of logic Direction of flow of logic Comment Indicates any comments for explanatory notes 12
  • 13. Example 1: Flowchart add sum of two numbers 13 START Input a and b C = a + b Display c END User can enter any two numbers
  • 14. Example 2: Flowchart to check whether the input number is even or odd 14 START Accept a number Divide it by 2 END Is remainder = 0 ? Display odd Display even YesNo START Accept a number
  • 15. 15 Using Algorithm and Flowchart in Coding Coding Enter numbers in a and b: 5 6 Displayed c: 11