Site icon TestingDocs.com

Flowchart to find the sum of even numbers from 1 to n

Table of Contents

Toggle

Overview

In this post, we will develop a RAPTOR flowchart to find the sum of even numbers from 1 to n. To find the sum of even numbers we need to iterate the numbers from 1 to n.

Flowchart

Output

N=10
Sum of even number from 1 to N =30

 

In the same way, we can calculate the sum of odd numbers too from the 1 to N range. To calculate the sum of odd numbers, instead of the even number 2 we need to start with the odd number 1.

 

Raptor Tutorials on this website can be found at:

https://www.testingdocs.com/raptor-a-flowchart-tool/

RAPTOR official website: https://raptor.martincarlisle.com/

Exit mobile version