Computer Science, asked by chaudharydibya2003, 7 months ago

write an algorithm to print prime numbers between 1 to 100​

Answers

Answered by sumansharma9402
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