Write an algorithm and draw a flowchart to print prime numbers from 1 to 50
Answers
Answered by
7
Few prime number are − 1, 2, 3, 5 , 7, 11 etc.
- Algorithm. Algorithm of this program is very easy − START Step 1 → Take integer variable A Step 2 → Divide the variable A with (A-1 to 2) Step 3 → If A is divisible by any value (A-1 to 2) it is not prime Step 4 → Else it is prime STOp
Answered by
0
Answer:
draw the flow charts to print prime number between 1 to 50
Similar questions