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