Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int num;
- printf("Enter the number: ");
- scanf("%d", &num);
- printf("The proper divisors of %d are : ", num);
- for(int i=2; i<num; i++){
- if(num%i == 0){
- printf("\n%d ", i);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement