#include<stdio.h>intmain(){int a =0, n =0, i =0, num =0, sum =0;scanf("%d %d",&a,&n);for(i =0; i < n; i++){
num = num*10+ a;
sum += num;}printf("s = %d", sum);return0;}
习题4-4 特殊a串数列求和 (20分)代码:#include <stdio.h>int main(){ int a = 0, n = 0, i = 0, num = 0, sum = 0; scanf("%d %d", &a, &n); for (i = 0; i < n; i++) { num = num*10 + a; sum += num; } printf("s = %d", sum); return 0;}...