把握今天,才能拥有明天!
#include<stdio.h>
#include<string>
#include<iostream>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{
int sum=0;
int aha=a;
int bha=b;
while(aha!=0)
{
int aa=aha%10;
bha=b;
while(bha!=0)
{
int bb=bha%10;
sum=sum+aa*bb;
bha=bha/10;
}
aha=aha/10;
}
printf("%d\n",sum);
}
}