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

Flowcharts

The document provides 26 flowcharts for various mathematical calculations and number patterns. The flowcharts include steps to calculate the sum of numbers, simple interest, factorials, averages, and determining even/odd and greatest values. They also include flowcharts to print natural numbers, even numbers, and odd numbers up to a given value of N.

Uploaded by

akyadav123
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
868 views

Flowcharts

The document provides 26 flowcharts for various mathematical calculations and number patterns. The flowcharts include steps to calculate the sum of numbers, simple interest, factorials, averages, and determining even/odd and greatest values. They also include flowcharts to print natural numbers, even numbers, and odd numbers up to a given value of N.

Uploaded by

akyadav123
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 33

1.

Draw a flowchart for sum of any 2 numbers?

Start

Clear WA

Input A, B

Sum = A + B

Print Sum

Stop

2.

Draw a flowchart for sum of any 3 numbers?

Start

Clear WA

Input A, B, C

Sum = A + B + C

Print Sum

Stop

3. Draw a flowchart to find out the Simple Interest?

Start

Clear WA

Input P, T, R

SI = (P * T * R)/100

Print SI

SI Simple Interest P Principle T Time R Rate of Interest

Stop

4. Draw a flowchart for sum of any 50 numbers?

Start

Clear WA

Sum = 0, Count = 0

Input n

Count = Count +1

Sum = Sum + n

If
Count > 50

Print Y Sum

Stop

5.

Draw a flowchart for sum of any 4000 numbers?

Start

Clear WA

Sum = 0, Count = 0

Input n

Count = Count +1

Sum = Sum + n

If
Count > 4000

Print Sum

Stop

6. Draw a flowchart for sum of any N numbers?


Start

Clear WA

Input N

Sum = 0, Count = 0

Input n

Count = Count +1

Sum = Sum + n

If Count > N

Print Sum

Stop

7.

Draw a flowchart to find out the first n Natural Numbers?

Start

Clear WA

Input n

Sum = n( n+1)/2

Print Sum

Stop

8. Draw a flowchart to find out the first 5 Natural Numbers? ( without using the above formula)

Start

Sum = 0, Count = 1

Sum = Sum + Count

Count = Count + 1

If Count > 5

Print Sum

Stop

9.

Draw a flowchart to find out the sum of first 500 Natural Numbers?

Start

Sum = 0, Count = 1

Sum = Sum + Count

Count = Count + 1

If Count > 500

Print Sum

Stop

10. Draw

a flowchart to find out the sum of first N Natural Numbers? ( without using the formula)

Start

Clear WA

Input N

Sum = 0, Count = 1

Sum = Sum + Count

Count = Count + 1

If Count >N

Print Sum

Stop

11. Draw

a flowchart to find out 5!?

Start

Clear WA

Prod = 1, Count = 1

Prod = Prod * Count

Count = Count + 1

If Count > 5

Print Prod

Stop

12.

Draw a flowchart to find out n!?


Start

Clear WA

Input N

Prod = 1, Count = 1

Prod = Prod * Count

Count = Count + 1

If Count >N

Print Prod

Stop

13. Draw

a flowchart to find out the average of any 3 numbers?

Start

Clear WA

Input A, B, C

Avg = (A + B + C)/3

Print Avg

Stop

14. Draw a flowchart to find out the whether a number is Even or Odd?

Start

Input n

Print n is Odd

Is n is divisible by 2

Print n is Even

Stop

15. Draw a flowchart to find out the greatest to any 2 numbers?

Start

Input A, B

If A= B

Print A and B are equal

Is A >B Print B is Greater Stop

Print A is Greater

16. Draw

a flowchart to find out the greatest to any 3 numbers?

Start Input A, B, C Print Is A >B Is B >C B is Greatest

Print Is A >C Print A is Greatest Stop C is Greatest

17. Draw

a flowchart to find out the greatest to any 300 numbers?

Start

C = 0, Max =0 Input n

C=C+1

If Max> n Max = n

If C=3 00 Print Max Stop

18. Draw a flowchart to find out the greatest to any N numbers?

Start Input N C=0, Max=0 Input n

C=C+1

If Max> n Max = n

If C=N

Print Max Stop

19.

Start Draw a flowchart to print all Natural numbers UPTO 50?

Count = 1

Print Count

Count = Count + 1

If Count > 50

Stop

20. Draw

a flowchart to print all Natural numbers UPTO N?

Start

Count = 1

Print Count

Count = Count + 1

If Count > N

Stop

21. Draw

a flowchart to print EVEN numbers UPTO 50?

Start

Count = 2

Print Count

Count = Count + 2

If Count > 50

Stop

22. Draw

a flowchart to print EVEN numbers UPTO N?

Start

Count = 2

Print Count

Count = Count + 2

If Count > N

Stop

23. Draw

a flowchart to print first 50 even numbers?


Start

i = 2, Count = 0

Print i

Count = Count + 1

i=i+2

If Count > 50

Stop

24. Draw

a flowchart to print ODD numbers UPTO 50?

Start

Count = 1

Print Count

Count = Count + 2

If Count > 50

Stop

25. Draw

a flowchart to print ODD numbers UPTO N?

Start

Count = 1

Print Count

Count = Count + 2

If Count > N

Stop

26. Draw

a flowchart to print first 50 odd numbers?

Start

i = 1, Count = 0

Print i

Count = Count + 1

i=i+2

If Count > 50

Stop

You might also like