Computer Science, asked by ankurpanwar4737, 1 year ago

Write program in c++to find and display all prime number between 100 to 10000

Answers

Answered by handesnehal556
0

#include <stdio.h>

int main(void)

{

   for(int i=2;i<100;i++)

   {

       for(int j=2;j<i;j++)

       {

           if(i%j==0)

               break;

           else if(i==j+1)

               printf("%d\n",i);

       }

   }

}

Similar questions