摘要:
#include<stdio.h> int main() { int n,Sn = 0,i,a = 0; scanf("%d",&n); for(i=0; i<n; i++){ a = a * 10 + 2; Sn = Sn + a; } printf("%d\n",Sn); return 0; } 阅读全文
posted @ 2020-09-08 20:29
能借我十块钱吗
阅读(1180)
评论(2)
推荐(0)
摘要:
#include<iostream> #include<string> //使用string类 using namespace std; int main() { string a; int c[4]={0,0,0,0};//定义一个数组用来存放每种字符的个数,并初始化为0 getline(cin, 阅读全文
posted @ 2020-09-08 19:38
能借我十块钱吗
阅读(384)
评论(0)
推荐(0)
浙公网安备 33010602011771号