What is an Algorithm?
It is a logical process of analyzing a mathematical problem and data step-by-step so as to make it easy for computing or for conversion of data into information for solving our problem.
- a) Write an algorithm for addition of 2 numbers.
- Input First Number as Num1
- Input Second Number as Num2
- Calculate Add= Num1 + Num2
- Print Value of Add
Flow chart is a step-by-step diagrammatic representation of the logic paths contained within a computer program (Algorithm).
Flow chart is a diagrammatic representation of the procedure for solving the problem.
b) Draw a flowchart for addition of 2 numbers.