私信TA
用户名:08242020036
访问量:409
签 名:
干掉康泰
自我简介:
作者: 薛波涛 发表时间:2021-03-19 23:31:05 浏览:216 | 评论:0
解题思路:注意事项:参考代码:
#include<stdio.h>
#include<math.h>
int main () {
int n,a,b,s,c;
scanf ("%d",&n);
s=0;
a=1;
c=2;
b=2;
while (a<=n) {
s=s+b;
b=2*pow(10,a)+c;
c=c+2*pow(10,a);
a=a+1;
}
printf("%d",s);
return 0 ;
0.0分
1 人评分
看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:
编程语言转换
万能编程问答
代码解释器
代码纠错
SQL生成与解释