Header Ads

Learn Together, Stay Connected.

সংখ্যা উল্টানো-C


 #include<stdio.h>
  
 int main()
   { 
    long long n,temp,rem,sum=0;
    scanf("%lld",&n);
    temp=n;
   
    while(temp!=0)
        {
            rem=temp%10;
            sum=sum*10+rem;
            temp=temp/10;
        }
    printf("%lld\n",sum);
       
    return 0;
    }

No comments

Theme images by Dizzo. Powered by Blogger.