摘要:
#include <iostream>using namespace std;void bubbleSort(int* arr, int len) { for (int i = 0; i < len - 1; i++) { for (int j = 0; j < len - i - 1; j++) 阅读全文
posted @ 2020-03-25 22:27
木屋小丑
阅读(361)
评论(0)
推荐(0)
摘要:
编程打印1到150以内能被3整除的自然数的和 #include <iostream> using namespace std; int main() { int x = 1; int z = 0; do { if (x >= 3) { if (x % 3 == 0) { z = z + x; } } 阅读全文
posted @ 2020-03-25 11:49
木屋小丑
阅读(420)
评论(0)
推荐(0)
浙公网安备 33010602011771号