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

Full Odd Sum Algorithm

The document outlines an algorithm to calculate the sum of all odd numbers up to 100. It includes a step-by-step process, pseudocode, and a flowchart to illustrate the method. The algorithm initializes a sum and iteratively adds odd numbers until reaching 100, then prints the result.

Uploaded by

Ayyanar Manickam
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)
2 views2 pages

Full Odd Sum Algorithm

The document outlines an algorithm to calculate the sum of all odd numbers up to 100. It includes a step-by-step process, pseudocode, and a flowchart to illustrate the method. The algorithm initializes a sum and iteratively adds odd numbers until reaching 100, then prints the result.

Uploaded by

Ayyanar Manickam
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

Sum of All Odd Numbers Till 100

Algorithm:
Step 1: Start
Step 2: Initialize sum = 0 and number = 1
Step 3: Repeat the following steps while number <= 100:
- Add number to sum
- Increase number by 2
Step 4: Print sum
Step 5: Stop

Pseudocode:
BEGIN
sum = 0
number = 1
WHILE number <= 100 DO
sum = sum + number
number = number + 2
END WHILE
PRINT sum
END

Flowchart:

You might also like