What is an algorithm?
Algorithm is a set of rules that defines how a particular problem can be solved in a finite number of steps. ( Algorithm is the step by step solution to a given problem) It start with a start keyword and ends with a stop keyword.
Example
Algorithm for adding two numbers
Step 1: Start
Step 2: Input two numbers
Step 3: Process ( calculate the sum)
Step 4: Display the output
Step 5: Stop
After writing algorithm we have to draw the pictorial part to study the problem easily. for that one concept is there flowchart.
What is a flowchart?
Flowchart is the pictorial representation of the algorithm. It is the easier way to understand the problem. There are different flowchart symbols
Flowchart symbols Flowchart for adding two numbers

0 Comments:
Post a Comment