Prpgram to reverse the given number & find Sum of it


#include "stdio.h"
#include "math.h"
int main()
{
int number, number2;
char str[100];
printf("Enter Any Number..");
scanf("%d",&number);
sprintf(str,"%d",number);
strrev(str);
number2 = atoi(str);
printf("%d\n",number+number2);
return 0;
}

No comments:

Post a Comment