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