Computer Science, asked by yadramsurana2575, 1 month ago

Program to find prime numbers between 1 to 40 using nested for loops. pl tell me tomorrow my exam I need help o will give it btainlist​

Answers

Answered by sukkhooprasad2
0

Answer:

sjakakjakwkkwkwkwaisjsjhwhwhshs

Answered by itspiyushhere
1

Answer:

#include <stdio.h>  

int main ()

{ /* local variable definition */  

   int i, j;

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

   {  

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

           if(!(i%j))

               break; // if factor found, not prime  

       if(j > (i/j))

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

   }

   return 0;  

}

Similar questions