Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int cifra,i,n;
- scanf("%d", &n); //1
- for(i=0;i<n;i++)
- {
- int sum=0;
- scanf("%d", &cifra); //123
- while(cifra)
- {
- int temp = cifra %10;
- sum = sum * 10 + temp; //
- cifra /= 10;
- }
- printf("%d", sum);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement