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