sandra0309

vezba 19

Dec 14th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. int main ()
  3. {
  4. int i,j,n,broj;
  5. scanf("%d",&n);
  6. for(i=1;i<=n;i++)
  7. {  scanf("%d",&broj);
  8.     for (j=1;j<=n;j++)
  9.     {  if(broj%j==0)
  10.         printf("%d",j);
  11.    
  12.     }
  13.  
  14. }
  15.  
  16. return 0;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment