Write an algorithm to display prime nos. between 1 to 100.
Answers
Answered by
0
for(i=2;i<=100;i++)
for(j=2;j<=i;j++)
if(i%j==0)
break
if(i==j)
prime
else
not prime
Similar questions
Chemistry,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago