Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- //Od tastatura se citaat N broevi da se ispecatata za nego site deliteli (so funkcija).
- int deliteli(int x)
- {
- int i, n, br=0;
- for(i=1;i<n;i++)
- {
- if(x%i==0)
- {
- return br;
- }
- }
- }
- int main()
- {
- int n,i,x;
- for(i=0;i<n;i++)
- {
- scanf("%d ", &x);
- int del = deliteli(x);
- printf("%d", del);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement