Answers for "intergration of digit code"

C
0

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;
}
Posted by: Guest on May-13-2021

Code answers related to "intergration of digit code"

Code answers related to "C"

Browse Popular Code Answers by Language