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