0% found this document useful (0 votes)
69 views7 pages

Flowchart Algorithm Project Class5 Corrected

Flowchart and algorithm for class 5 with diagram

Uploaded by

arindampradhan58
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views7 pages

Flowchart Algorithm Project Class5 Corrected

Flowchart and algorithm for class 5 with diagram

Uploaded by

arindampradhan58
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Project File

Topic: Flowchart, Algorithm and Diagram

Computers need step-by-step instructions to perform tasks. These instructions are called
Algorithm. To represent algorithms in an easy pictorial form, we use Flowcharts.

1. Addition of Two Numbers

Algorithm:
Step 1: Start
Step 2: Take two numbers a and b
Step 3: Calculate sum = a + b
Step 4: Display sum
Step 5: Stop

Flowchart:

Start

Input a,b

Sum=a+b

Print Sum

Stop
2. Even or Odd Number

Algorithm:
Step 1: Start
Step 2: Take a number n
Step 3: If n % 2 == 0, print Even
Step 4: Else, print Odd
Step 5: Stop

Flowchart:

Start

Input n

n%2==0?

Print Even

Print Odd

Stop
3. Largest of Three Numbers

Algorithm:
Step 1: Start
Step 2: Take three numbers a, b, c
Step 3: If a > b and a > c, print a is largest
Step 4: Else if b > c, print b is largest
Step 5: Else print c is largest
Step 6: Stop

Flowchart:

Start

Input a,b,c

Check conditions

Print Largest

Stop
4. Multiplication Table

Algorithm:
Step 1: Start
Step 2: Take a number n
Step 3: Repeat i=1 to 10 → Print n × i
Step 4: Stop

Flowchart:

Start

Input n

Loop i=1 to 10

Print n×i

Stop
5. Sum of First 10 Numbers

Algorithm:
Step 1: Start
Step 2: Initialize sum=0, i=1
Step 3: Repeat while i ≤ 10 → sum=sum+i, i=i+1
Step 4: Print sum
Step 5: Stop

Flowchart:

Start

sum=0,i=1

i≤10?

sum=sum+i

i=i+1

Print sum

Stop
6. Factorial of a Number

Algorithm:
Step 1: Start
Step 2: Take a number n
Step 3: Initialize fact=1
Step 4: Repeat i=1 to n → fact=fact×i
Step 5: Print fact
Step 6: Stop

Flowchart:

Start

Input n

fact=1,i=1

Loop i=1 to n

fact=fact×i

Print fact

Stop
Conclusion
This project taught us how to write Algorithms and represent them using Flowcharts for better
understanding.

You might also like