Draw a flowchart to print all prime numbers between 1 to n.
Answers
Answered by
6
Explanation:
Is that helpful are not
Attachments:
Answered by
4
An Algorithm is the finite set of steps that define the solution of a particular problem.
Explanation:
Detailed Algorithm:
Step 1: Input N & M
Step 2: While (N < M)
I=2
Step 4: While (I<N)
Step 5: IF N%I == 0
goto Step 7
Step 6: I++
Step 7: IF I==NUM
Print NUM
Step 7: N++
Attachments:
Similar questions