UVA 713 - Adding Reversed Numbers

Problem PDF

Solution:

#include
#include
int main()
{
char a[260],b[260],p[205];
int t,l,len,e,f,i,r,s,d,y,q,j;
scanf("%d",&t);
while(t--)
{
scanf("%s%s",&a,&b);
l=strlen(a);
len=strlen(b);
if(l>len)
{
y=l;
for(i=len;il)
{
y=len;
for(i=l;i9)
{
r=s%10;
p[j]=r+'0';
f=1;
}
 else{
    p[j]=s+'0';
    f=0;
    }
}
if(f==1){
    p[j]=f+'0';
    p[j+1]='\0';
    }
else{
    p[j]='\0';
    }
  i=0;
y=strlen(p);
while (p[i]=='0')
i++;
for (;i
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/713/713.cpp