解题思路:
注意事项:
参考代码:
#include<stdio.h>
#include<math.h>
int main(){
int a,n,sum=0,x;
scanf("%d %d",&a,&n);
x=a;
while(n--){
sum+=a;
a=a*10+x;
}
printf("%d",sum);
}
0.0分
0 人评分
C二级辅导-同因查找 (C语言代码)浏览:564 |
简单的a+b (C语言代码)浏览:717 |
计算质因子 (C++代码)浏览:1638 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:666 |
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)浏览:1420 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:798 |
C语言训练-数字母 (C语言代码)浏览:608 |
1017题解浏览:604 |
出圈】指针malloc版浏览:355 |
数组与指针的问题浏览:717 |