PAT乙级1086-----就不告诉你 (15分)
1086 就不告诉你 (15分)
输入样例:
5 7
输出样例:
53
思路:
1.注意低位连续的0,例如17000倒置为71
首次通过代码:
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 #include<stdio.h> 2 3 int main(){ 4 int a,b; 5 scanf("%d %d",&a,&b); 6 int c=a*b; 7 if(c==0) { 8 printf("0"); 9 return 0; 10 } 11 while(c%10==0) c=c/10; 12 while(c!=0) { 13 printf("%d",c%10); 14 c=c/10; 15 } 16 return 0; 17 }