0% found this document useful (0 votes)
146 views14 pages

Algorithm & Flowchart

Uploaded by

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

Algorithm & Flowchart

Uploaded by

Sagar Jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

1.

Write an algorithm &


draw a flowchart to find area
of rectangle.

1. Write an algorithm &


draw a flowchart to find area
of circle.
Find average of three
numbers

[Link]
[Link]
L,M,N,A=0
3. A=(L+M+N)/3
[Link] A
[Link]
Decision Box
I/P

NO YES
ELSE CONDITION
THEN
O/P O/P
Greatest of
two
numbers.(a
& b)
Greatest of two numbers.(a &
b)

[Link]
[Link] a & b
[Link] a>b THEN OUTPUT a IS
GREATEST

ELSE OUTPUT b IS GREATEST

[Link]
To find whether the given number(N) is
even or odd

[Link]
[Link] N
[Link] N % 2 = 0 Then Output N is
even
Else Output N is odd

[Link]
1. Write an algorithm &
draw a flowchart for division
of two numbers (A & B)in
such a way that , the greater
number should be in the
numerator & smaller in the
denominator.(O/P will be
stored in X)
[Link]
[Link] A , B ,X=0

[Link] A>B Then X=A/B

Else X=B/A

4.O/P X
5. Stop
Q. Write an algorithm
& draw a flowchart to
find whether the given
number(N) is positive ,
negative or zero.
[Link]
[Link] N
[Link] N>0 Then O/P N is
positive
Else If N = 0 Then o/p N is
equal to zero
Else o/p N is Negative

5. Stop
Q. Write an
algorithm & draw a
flowchart to find
whether A>B or B>A
or A=B

You might also like