SlideShare a Scribd company logo
3
Most read
4
Most read
8
Most read
Flowchart and algorithm
Write an algorithm for 
finding the average of two 
numbers and also draw a 
flowchart
Algorithm: 
Input: two numbers x and y 
Output: the average of x and y 
Step 1 : input x,y 
Step 2: sum=0,average=0 
Step 3:sum = x + y 
Step 4:average = sum /2 
Step 5: print average
START 
Input x 
Sum=average 
=0 
Sum = x + y 
Average = sum/2 
Print 
Average 
END
sums all the even numbers 
between 1 and 20 inclusive 
and then displays the sum
Step 1: start 
Step 2:sum = 0 ,count = 1 
Step 3: if count /2==0 then goto step 4 
Step 4:sum = sum + count 
step 5:count = count + 1 
Step 6:if count <20 then go to step 3 
step 7: DISPLAY sum 
Step 8: stop
Flowchart and algorithm
To find the sum of first 50 natural numbers. 
Step 1: start 
Step 2:sum = 0 ,N= 0 
Step 3: N=N+1 
Step 4:sum = sum + N 
step 5:if SUM<50 then go to step 3 
Step 6:DISPLAY sum 
Step 7: stop
Flowchart and algorithm
Step 1:start 
Step 2:Input x, y 
Step 3:Sum = x + y 
Step 4:Average = sum/2 
Step 5:Output Average 
Step 6:END

More Related Content

PPTX
Pseudocode
PPTX
pseudocode and Flowchart
PDF
Algorithms and flowcharts
PPT
C by balaguruswami - e.balagurusamy
PDF
Control statements
PPTX
Loops in C Programming Language
PDF
Pseudocode & flowchart examples
PPTX
Algorithm and flowchart
Pseudocode
pseudocode and Flowchart
Algorithms and flowcharts
C by balaguruswami - e.balagurusamy
Control statements
Loops in C Programming Language
Pseudocode & flowchart examples
Algorithm and flowchart

What's hot (20)

PPTX
Algorithms and Flowcharts
PPTX
Introduction to programming
PPTX
Data types
PDF
Operators in python
PPTX
Algorithm and flowchart
PDF
Introduction to c++ ppt
PPT
Introduction to Compiler design
PPTX
Pseudocode flowcharts
PPTX
Unit 3. Input and Output
PPT
Half adder & full adder
PPTX
C Programming: Control Structure
PPTX
Algorithm and pseudo codes
PPTX
Mathematical Analysis of Non-Recursive Algorithm.
PDF
Introduction to c++ ppt 1
PPTX
C++ project
PPT
PDF
Program development cyle
PDF
Intro to Discrete Mathematics
PDF
Introduction to Operating Systems
PPT
pseudo code basics
Algorithms and Flowcharts
Introduction to programming
Data types
Operators in python
Algorithm and flowchart
Introduction to c++ ppt
Introduction to Compiler design
Pseudocode flowcharts
Unit 3. Input and Output
Half adder & full adder
C Programming: Control Structure
Algorithm and pseudo codes
Mathematical Analysis of Non-Recursive Algorithm.
Introduction to c++ ppt 1
C++ project
Program development cyle
Intro to Discrete Mathematics
Introduction to Operating Systems
pseudo code basics
Ad

Viewers also liked (10)

PDF
Writing algorithms
PPT
2011 Grants Writing Program
PDF
Writing Effective Program Designs
PDF
Scientific & Technical Writing Program
PPSX
Effective program writing
PPTX
Writing program diapositivas
PPTX
Algorithm and flowchart2010
PPTX
Algorithms
PPTX
Introduction to Pseudocode
PPT
Algorithmsandflowcharts1
Writing algorithms
2011 Grants Writing Program
Writing Effective Program Designs
Scientific & Technical Writing Program
Effective program writing
Writing program diapositivas
Algorithm and flowchart2010
Algorithms
Introduction to Pseudocode
Algorithmsandflowcharts1
Ad

Similar to Flowchart and algorithm (20)

PPTX
ALGO VS FLOW.pptx
PDF
Problem solving using Programming
PPT
algorithm_practice.pptzkkxiqdhiwdowhdohwod2hodh2odh2o
PDF
L- 14. 0 Algorithm_Flowchart_Example.pdf
PDF
PSP LAB MANUAL.pdf
PPT
Algorithm
PPTX
Python programs - PPT file (Polytechnics)
PPTX
To create algorithm and flowchart for selection, sequence and iteration state...
PPTX
Lecture 7.pptx
PDF
chapter-5: C-Programming by "Ratul Rana Sir", Ullapara, Sirajganj
PPTX
Csci101 lect03 algorithms_i
PDF
Algorithm and flowchart
PPTX
Problem Solving - Introduction to Flowcharts.pptx
PDF
Python programs - first semester computer lab manual (polytechnics)
PDF
1153 algorithms%20and%20flowcharts
PPT
Uta005 lecture3
PDF
C++ TUTORIAL 4
PPTX
CSE115 C Programming Introduction North south university
PPT
Itc lec5-24+sep+2012
PDF
Fundamental of Information Technology - UNIT 6
ALGO VS FLOW.pptx
Problem solving using Programming
algorithm_practice.pptzkkxiqdhiwdowhdohwod2hodh2odh2o
L- 14. 0 Algorithm_Flowchart_Example.pdf
PSP LAB MANUAL.pdf
Algorithm
Python programs - PPT file (Polytechnics)
To create algorithm and flowchart for selection, sequence and iteration state...
Lecture 7.pptx
chapter-5: C-Programming by "Ratul Rana Sir", Ullapara, Sirajganj
Csci101 lect03 algorithms_i
Algorithm and flowchart
Problem Solving - Introduction to Flowcharts.pptx
Python programs - first semester computer lab manual (polytechnics)
1153 algorithms%20and%20flowcharts
Uta005 lecture3
C++ TUTORIAL 4
CSE115 C Programming Introduction North south university
Itc lec5-24+sep+2012
Fundamental of Information Technology - UNIT 6

Recently uploaded (20)

PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Geodesy 1.pptx...............................................
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Welding lecture in detail for understanding
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Lesson 3_Tessellation.pptx finite Mathematics
CH1 Production IntroductoryConcepts.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Geodesy 1.pptx...............................................
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Model Code of Practice - Construction Work - 21102022 .pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Welding lecture in detail for understanding
Internet of Things (IOT) - A guide to understanding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

Flowchart and algorithm

  • 2. Write an algorithm for finding the average of two numbers and also draw a flowchart
  • 3. Algorithm: Input: two numbers x and y Output: the average of x and y Step 1 : input x,y Step 2: sum=0,average=0 Step 3:sum = x + y Step 4:average = sum /2 Step 5: print average
  • 4. START Input x Sum=average =0 Sum = x + y Average = sum/2 Print Average END
  • 5. sums all the even numbers between 1 and 20 inclusive and then displays the sum
  • 6. Step 1: start Step 2:sum = 0 ,count = 1 Step 3: if count /2==0 then goto step 4 Step 4:sum = sum + count step 5:count = count + 1 Step 6:if count <20 then go to step 3 step 7: DISPLAY sum Step 8: stop
  • 8. To find the sum of first 50 natural numbers. Step 1: start Step 2:sum = 0 ,N= 0 Step 3: N=N+1 Step 4:sum = sum + N step 5:if SUM<50 then go to step 3 Step 6:DISPLAY sum Step 7: stop
  • 10. Step 1:start Step 2:Input x, y Step 3:Sum = x + y Step 4:Average = sum/2 Step 5:Output Average Step 6:END