Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int numCount(int x)
- {
- int i,c = 0;
- for (i = 1; i <= x; i++)
- {
- if (x % i == 0)
- {
- c++;
- printf("%d\n",i);
- }
- }
- printf("Number of dividers is: %d",c);
- }
- int main()
- {
- int x;
- printf("Wirite number: ");
- scanf("\n%d",&x);
- numCount(x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement