write a program in java to find all the prime number between 20 to 50 and show the output
Answers
Answered by
1
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
STEP 9: if ct= 2 then print i
STEP 10: n = n +1
STEP 11: i = i +1
STEP 12: END
I give all the steps please put me to BRAINLIEST.
Similar questions
History,
3 months ago
Math,
3 months ago
English,
3 months ago
Math,
7 months ago
India Languages,
7 months ago
English,
11 months ago
Social Sciences,
11 months ago