ORIGINAL & REVERSE

#include<stdio.h>
#include<conio.h>
void main()
{
int no,r,a,b,c,d,o;
clrscr();
printf("ENTER A 5 DIGIT NUMBER");
scanf("%d",&no);
o=no;
a=no%10;
no=no/10;
b=no%10;
no=no/10;
c=no%10;
no=no/10;
d=no%10;
no=no/10;
r=(a*10000)+(b*1000)+(c*100)+(d*10)+(no*1);
if(r==o)
  {
  printf("Assigned & reverse are same");
  }
  else
    {
    printf("Assigned & reverse are not same");
    }
getch();
}

1 comments: (+add yours?)

Anonymous said...

Woori Casino No Deposit Bonus 2021 | Free Play in Demo
Woori wooricasinos.info Casino offers a oklahomacasinoguru.com variety of 바카라 사이트 free spins and no deposit choegocasino.com사이트 bonuses, as well as regular https://octcasino.com/ promotions. As you can't claim this offer without being registered

Post a Comment