Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int n,i;
- scanf("%d",&n);
- int contor=0;
- int nc=n;
- while(nc!=0){
- nc=nc/10;
- contor++;
- }
- for(i=1;i<=contor;i++){
- int x=0;
- int ordin=1;
- while(n>9){
- int c=n%10;
- x=x+c*ordin;
- ordin=ordin*10;
- n=n/10;
- }
- x=x*10+n;
- printf("%d",x);
- n=x;
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment