摘要:
#include<bits/stdc++.h> using namespace std; int main() { int i = 1,n,maxx = -9999999; //初始化最大值maxx为负数 cin >> n; while(i <= n) { int x; cin >> x; if(x 阅读全文
posted @ 2024-10-23 13:37
CRt0729
阅读(29)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int main() { int sum = 0,i = 1,n; //求和sum,循环变量i cin >> n; while(i <= n) //i=1时,写i<=n可以实现循环n次 { int x; cin 阅读全文
posted @ 2024-10-23 13:37
CRt0729
阅读(26)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int main() { int sum = 0,i = 1,n; //求和sum,循环变量i cin >> n; while(i <= n) //i=1时,写i<=n可以实现让i从1到n变化 { sum = 阅读全文
posted @ 2024-10-23 13:35
CRt0729
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号