draw a flowchart that input a number and display its factors
Answers
Answer:
Before drawing the flowchart, we have to know what is the flowchart. A flowchart is a kind of diagram that shows a workflow or a process. Or we can say it is a diagrammatic representation of an algorithm or step by step approach to solving a task.
flowchart to find a factor of a number:
start
↓
take input, n
↓
i ←1
↓
fact ←1
↓
loop <--------------------|
↓ |
i<=n ----(no)---| |
↓ (yes) | |
↓ | |
fact = fact * i | |
↓ | |
i = i+1 ------------|---------|
↓ ↓
print factorial of a given
no is "fact"
↓
end