标签:
main(){
int a,n,count=1;
long int sn=0,tn=0;
cout<<"input a and n:";
cin>>a>>n;
while(count<=n){
tn=tn+a;
sn=sn+tn;
a=a*10;
++count;}
cout<<"a+aa+aaa+a........"<<sn;
s=a+aa+aaa+aaaa+aa...aaaa
原文地址:http://www.cnblogs.com/mykonons/p/5186046.html