Untitled
unknown
plain_text
a year ago
291 B
8
Indexable
Never
///123 #include <stdio.h> int main() { int n,rem,sum=0,rev=0; scanf("%d",&n); while (n) { rem=n%10; sum=sum+rem; rev=rev*10+rem; n/=10; } printf("reverse= %d\n",rev); printf("sum= %d\n",sum); return 0; }