Site icon TestingDocs.com

Flowchart to obtain the numbers between 1 and N which are divisible by 5

Introduction

Flowchart to obtain the numbers between 1 and N which are divisible by 5. We will use Raptor to design the flowchart to find the integers that are multiples of 5 between 1 and N.

Flowchart

 

Pseudocode

/**
* NAME:
* DATE:
* FILE:
* COMMENTS:
*/

START
// declare variables
n = 0;
counter = 1;
PROMPT = “Enter n”;
INPUT n
WHILE (counter > n)
{
IF (counter % 5 == 0)
{
printLine(counter);
}
counter = counter + 1;
}
END

 

The counter is the variable that goes from 1 to n. We will check if the counter is divisible by 5 . If it is divisable then we will print the value.

 

More Flowchart Examples

https://www.testingdocs.com/raptor-flowchart-examples/

Raptor Tutorial

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