Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int delivost(int n)
- {
- int zbir=0;
- zbir=((n%100)+(n/100));
- return zbir;
- }
- int main()
- {
- int n,i;
- for(i=1000;i<10000;i++)
- {
- if((i%delivost(i))==0)
- {
- printf("Brojot %d go zadovoluva uslovot\n",i);
- n++;
- }
- }
- printf("Pronajdeni se %d takvi broevi",n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement