write an algorithm to print prime numbers between 1 to 100
Answers
Answered by
7
Answer:
Algorithm
STEP 1: START.
STEP 2: SET ct =0, n=0, i=1,j=1.
STEP 3: REPEAT STEP 4 to STEP 11 until n<25.
STEP 4: SET j= 1.
STEP 5: SET ct = 0.
STEP 6: REPEAT STEP7 to STEP 8 UNTIL j<=i.
STEP 7: if i%j = = 0 then ct =ct +1.
STEP 8: j = j + 1.
Explanation:
please mark me as brainlist and follow me
Similar questions
Computer Science,
3 months ago
Hindi,
3 months ago
English,
7 months ago
Computer Science,
7 months ago
Economy,
11 months ago
Math,
11 months ago
History,
11 months ago