josiftepe

Untitled

Dec 21st, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int a,b,temp;
  7.     scanf("%d", &a);
  8.     scanf("%d", &b);
  9.     temp=a;
  10.     while(temp<=b)
  11.     {
  12.         int brojac=0;
  13.         for(int temp2=1;temp2<=temp;temp2++){
  14.             if(temp%temp2==0)
  15.             {
  16.                 brojac++;
  17.                 //printf("Brojot e deliv..%d\n",brojac);
  18.  
  19.             }
  20.         }
  21.         if(brojac==4)
  22.         {
  23.  
  24.             printf("%d\n",temp);
  25.         }
  26.  
  27.         temp++;
  28.  
  29.     }
  30.     return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment