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
Social Sciences,
6 months ago
History,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago