Skip to main content

Flowchart and Algorithm







Algorithm

The step-by-step process of solving any problem is known as
algorithm. The algorithm represents logic of any program. It is free
from computer languages.

Characteristics of algorithm

The features of algorithm are :
  1. Input
  2. Output
  3. Defeniteness
  4. Effectiveness
  5. Finiteness

Flowchart

It 
is the symbolic representation of any algorithm(logic). We use the
following symbols in the flowchart :


Symbol

Name

Purpose



oval

start/stop



parallelogram

input/output



rectangle

process



diamond

decision making



flow lines

direction



connectors

connection



Illustration
of flowchart and algorithm with the help of an example : Read a number
having two digits and prints the summation of two digits.









Comments

Popular posts from this blog

Reversing digits of a number

#include<stdio.h> #include<conio.h> void main() { clrscr(); int ,num,rev=0,rem; printf("Enter the number:"); scanf("%d",&num); while(num!=0) { rem=num%10; rev=rev*10+rem; num=num/10; } printf("Reverse of given Number is:%d",rev); getch(); }