0% found this document useful (0 votes)
4 views2 pages

flowchart-algorithm(1)

The document provides a manual on algorithms and flowcharts, detailing the use of simple language and variable assignment in algorithm writing. It includes explanations of mathematical and relational operators, along with two algorithms for calculating the sum of series: one for the series 1+2+3+...+N and another for the series 1+3+5+...+N. Each algorithm is broken down into step-by-step instructions for clarity.

Uploaded by

dipa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

flowchart-algorithm(1)

The document provides a manual on algorithms and flowcharts, detailing the use of simple language and variable assignment in algorithm writing. It includes explanations of mathematical and relational operators, along with two algorithms for calculating the sum of series: one for the series 1+2+3+...+N and another for the series 1+3+5+...+N. Each algorithm is broken down into step-by-step instructions for clarity.

Uploaded by

dipa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Algorithm & Flowchart Manual

The language used to write algorithm is simple and similar to day-to-day life language. The
variable names are used to store the values. The value store in variable can change in the
solution steps. In addition some special symbols are used as below

Assignment Symbol (  or =) is used to assign value to the variable.

e.g. to assign value 5 to the variable HEIGHT, statement is

HEIGHT  5

or

HEIGHT = 5

The symbol ‘=’ is used in most of the programming language as an assignment symbol, the
same has been used in all the algorithms and flowcharts in the manual.

The statement C = A + B means that add the value stored in variable A and variable B
then assign/store the value in variable C.

The statement R = R + 1 means that add I to the value stored in variable R and then
assign/store the new value in variable R, in other words increase the value of variable R by 1

Mathematical Operators:

Operator Meaning Example


+ Addition A+B
- Subtraction A–B
* Multiplication A*B
/ Division A/ B
^ Power A^3 for A3
% Reminder A%B

Relational Operators

Operator Meaning Example


< Less than A<B
<= Less than or equal to A <= B
= or == Equal to A = B
# or != Not equal to A # B or A !=B
> Greater than A>B
>= Greater tha or equal to A >= B

6 CIC-UHF
Algorithm & Flowchart Manual

..

Algorithm & Flowchart to find sum of series 1+2+3+…..+N

Algorithm

Step-1 Start

Step-2 Input Value of N

Step-3 I = 1, SUM=0

Step-4 IF (I >N) THEN


GO TO Step-8
ENDIF
Step-5 SUM = SUM + I

Step-6 I=I+1

Step-7 Go to step-4

Step-8 Display value of SUM

Step-9 Stop

Algorithm & Flowchart to find sum of series 1+3+5+…..+N, Where N is positive


odd Integer
Algorithm

Algorithm

Step-1 Start

Step-2 Input Value of N

Step-3 I = 1, SUM=0

Step-4 IF (I >N) THEN


GO TO step 8
ENDIF
Step-5 SUM = SUM + I

Step-6 I=I+2

Step-7 Go to step-4

Step-8 Display value of SUM

Step-9 Stop

18 CIC-UHF

You might also like