#include <stdio.h>
#include <string.h>
int main()
{
char a[10],b[10];
int i,j,n=0,m=0;
scanf("%s %s",a,b);
for(i=0;i<strlen(a);i++)
n+=a[i];
for(i=0;i<=strlen(b);i++)
m+=a[i];
printf("%d",n*m);
return 0;
}
input 123 45 means output 54(which came by (1+2+3)*(4+5)), but it doesn't HELP
At line 8 and 9, it shows comparison between signed and unsigned integer expressions, and i get the wrong awnser
input 123 45 means output 54(which came by (1+2+3)*(4+5)), but it doesn't HELP