intergration of digit code code example
Example: intergration of digit code
#include<stdio.h>
int main(){
long long digit,Sum;
int value,power,n1,n2;
digit=76544398085432;
power=1;
Sum=0;
while(digit){
value=digit%100;
printf("%d",value);
n1=value%10;
n2=value/10;
// temp=n1;
// n1=n2;
//n2=temp;
value=n2*10+n1;
// printf("%d",value);
Sum=value*power+Sum;
digit/=100;
power*=100;
}
printf("%lld",digit);
return 0;
}