0% found this document useful (0 votes)
6 views

algorithm-flowchart-class-5_6

The document outlines algorithms and flowcharts for three tasks: calculating the sum of two numbers, finding the area and perimeter of a square, and determining the smallest of two numbers. Each algorithm includes a step-by-step process for inputting values and displaying results. Additionally, it includes a simple eligibility check based on age.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

algorithm-flowchart-class-5_6

The document outlines algorithms and flowcharts for three tasks: calculating the sum of two numbers, finding the area and perimeter of a square, and determining the smallest of two numbers. Each algorithm includes a step-by-step process for inputting values and displaying results. Additionally, it includes a simple eligibility check based on age.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Algorithm & Flowchart to find the sum of two numbers


2. Algorithm & Flowchart to find Area and
Perimeter of Square
Algorithm
Algorithm
Step-1 Start
Step-1 Start
Step-2 Input first numbers say A
Step-2 Input Side Length of Square say L
Step-3 Input second number say B
Step-3 Area = L x L
Step-4 SUM = A + B
Step-4 PERIMETER = 4 x L
Step-5 Display SUM
Step-5 Display AREA, PERIMETER
Step-6 Stop Step-6 Stop

8 9
7. 8.Accept the age of a person. Display the message Eligible for Role if the age
Algorithm & Flowchart to find the smallest of two numbers is equal to or greater than 18, otherwise display the message Not Eligible.
Algorithm

Step-1 Start
Step-2 Input two numbers say NUM1,NUM2
Step-3 IF NUM1 < NUM2 THEN
print smallest is NUM1
ELSE
print smallest is NUM2
ENDIF
Step-4 Stop

14 15

You might also like