0% found this document useful (0 votes)
5 views1 page

Pseudo Code

The document outlines a program that takes a positive integer as input, then checks if it is divisible by numbers from 1 to the input number, displaying the factors if any numbers multiply to equal the input.

Uploaded by

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

Pseudo Code

The document outlines a program that takes a positive integer as input, then checks if it is divisible by numbers from 1 to the input number, displaying the factors if any numbers multiply to equal the input.

Uploaded by

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

1. Input number.

2. IF number1 <= 0

Display" Enter a Positive Integer"

Repeat Step 1

Else:

3. FOR each i from 1 to number (inclusive)

4. IF number is divisible by i

FOR each j from i to (number divided by i) (inclusive)

IF i multiplied by j equals number

Display f"{i} x {j}"

END IF

END FOR

END IF

END FOR

5. . Program ends

You might also like