- 【例26.2】 循环判断输出
重要信息
- @ 2026-2-28 21:16:18
0分的注意格式
1 comments
-
谭钧予 LV 9 @ 2026-5-20 0:08:23#include <iostream> using namespace std; int main() { int n; // 输入正整数n cin >> n; // 遍历所有3的倍数,直到不超过n for (int i = 3; i <= n; i += 3) { cout << i << endl; } return 0; }
- 1
Information
- ID
- 64
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 161
- Accepted
- 64
- Uploaded By