#include<stdio.h>
#include<math.h>
int main()
{
int a, b, i;
scanf("%d %d", &a, &b);
long int c = a * b;
for (i = 1; i; i++)
{
if (c % (int)pow(10, i) == c)
break;
}//求位数i
int k = 0, j, t=0;
for (j = 1; j <= i; j++)
{
k = c % 10;//求c的个位数;
c = c / 10;//将个位数抹掉
t = t * 10 + k;
}
printf("%d", t);
return 0;
}
就不告诉你
最新推荐文章于 2024-08-27 10:18:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)