Step 1 : Initialize count=1, fact=1, sum=0
Step 2 : Read no
Step 3 : Calculate fact=fact*count
Step 4 : Calculate sum=sum + fact.
Step 5 : Increment count by 1, count=count+1.
Step 6 : If count<=no, goto 3.
Step 7 : Print sum.
Step 8 : Stop.
Flowchart:
Step 1 : Initialize count ← 1,fact ← 1
Step 2 : Read no
Step 3 : Calculate fact ← fact * count.
Step 4 : Increment count by 1, count ← count+1.
Step 5 : If count <= no, goto 3.
Step 6 : Print fact.
Step 7 : Stop.
Flowchart:-
Step 1 : Read a ,b, c
Step 2 : If a > b, goto 5
Step 3 : If b > c, goto 8
Step 4 : Print c is maximum goto 9
Step 5 : If a > c, goto 7.
Step 6 : Print c is maximum, goto 9
Step 7 : Print a is maximum, goto 9
Step 8 : Print b is maximum
Step 9 : Stop.
Flowchart:-
Step 1 : Initialize pos ← 0,neg ← 0,zero ← 0
Step 2 : Read no
Step 3 : If no > 0, goto 6
Step 4 : If no < 0, goto 7
Step 5 : Increment zero by 1, zero = zero + 1.go to 8
Step 6 : Increment pos by 1, pos = pos + 1.go to 8
Step 7 : Increment neg by 1, neg = neg + 1.
Step 8 : Print “Do you want to enter more number?”
Step 9 : Read ans
Step 10 : If ans = “y”, goto 2
Step 11 : Print pos, neg, zero.
Step 12 : stop.
Flowchart:-
Step 1 : Input no.
Step 2 : If no mod 2=0, goto 4.
Step 3 : Print given no is odd, goto 5.
Step 4 : Print given no is even.
Step 5 : Stop.
Flowchart:-

Flowchart is a pictorial or graphical representation of a process. Each step in the process is represented by a different symbol and contains a short description of the process step. The flow chart symbols are linked together with arrows showing the process flow direction. This pictorial representation can give step-by-step solution of the given problem.
Advantages
• Easy to draw.
• Easy to understand logic.
• Easy to identify mistakes by non computer person.
• Easy to show branching and looping.
Disadvantages
• Time consumin .
• Difficult to modify.
• Very difficult to draw flowchart for big or complex problems.
Algorithm
An Algorithm is a finite sequence of well defined steps for solving a problem in systematic manner. It is written in the natural languages like English.
Advantages
• Easy to write.
• Human readable techniques to understand logic.
• Algorithms for big problems can be written with moderate efforts.
Disadvantages
• Difficult to debug.
• Difficult to show branching and looping.
• Jumping (goto) makes it hard to trace some problems.
Flowchart | Algorithm |
It is a pictorial representation of a process. | It is step wise analysis of the work to be done. |
Solution is shown in graphical format. | Solution is shown in non computer language like English. |
Easy to understand as compared to algorithm. | It is somewhat difficult to understand. |
Easy to show branching and looping. | Difficult to show branching and looping. |
Flowchart for big problem is impractical | Algorithm can be written for any problem |