Advertisement
jordanov

prevrtenBr

Nov 15th, 2019
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. int main()
  2. {
  3. int cifra,i,n;
  4.  
  5. scanf("%d", &n); //1
  6. for(i=0;i<n;i++)
  7. {
  8. int sum=0;
  9. scanf("%d", &cifra); //123
  10.  
  11. while(cifra)
  12. {
  13. int temp = cifra %10;
  14.  
  15. sum = sum * 10 + temp; //
  16. cifra /= 10;
  17. }
  18.  
  19. printf("%d", sum);
  20. }
  21.  
  22.  
  23.  
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement