首页 > 其他分享 >11.25.2

11.25.2

时间:2022-11-25 13:00:24浏览次数:45  
标签:10 a% int sum long 11.25 include

#include<stdio.h>


int main()

{

int a,n,i;

unsigned long long sum=0;

scanf("%d",&n);

a=2;

for(i=1;i<=n;i++)

{

sum+=a;

a=a*10+a%10;

}

printf("%llu",sum);

return 0;

}

标签:10,a%,int,sum,long,11.25,include
From: https://blog.51cto.com/u_15758636/5886384

相关文章