answersLogoWhite

0

All the smallest factors of a number must be its smallest factor, which for any number is 1, so:

loop

loop

loop

print "Enter an integer number: ":

input n

until num(n) do

print "Please enter a number"

repeat

until n = int(n) do

print "Please enter an integer"

repeat

print "Smallest factor of ":n:" is 1"

repeat

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: Write program that read an integer and display all its smallest factors?
Write your answer...
Submit
Still have questions?
magnify glass
imp