int main() { int arr[100],i; for(i=0; ;i++) { scanf("%d",arr[i]); if(arr[i]==0) break; } for(i--;i>=0;i--) printf("%d",arr[i]); return 0; }```