Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int NUMBER;
- int i = 0;
- int resto = 0;
- printf("Inserire NUM: ");
- scanf("%d", &NUMBER);
- printf("\nDivisori: \n");
- while(i++ <= NUMBER)
- {
- resto = NUMBER%i;
- if(resto == 0)
- printf("%d \n",i);
- }
- system("pause >> null");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement