Computer Science, asked by Mubashirk1063, 1 year ago

Write an algorithm to display prime nos. between 1 to 100.

Answers

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