专门做外贸机械的网站,深圳网站建设相关推荐,网页网站,网站建设的资金倍数
题目描述
本题为填空题#xff0c;只需要算出结果后#xff0c;在代码中使用输出语句将所填结果输出即可。
请问在 11 到 20202020 中#xff0c;有多少个数既是 44 的整数倍#xff0c;又是 66 的整数倍。
运行限制
最大运行时间#xff1a;1s最大运行内存: 12…倍数
题目描述
本题为填空题只需要算出结果后在代码中使用输出语句将所填结果输出即可。
请问在 11 到 20202020 中有多少个数既是 44 的整数倍又是 66 的整数倍。
运行限制
最大运行时间1s最大运行内存: 128M
代码:
#includeiostream
using namespace std;
int main() {int count 0;for (int i 1; i 2020; i) {if (i % 4 0 i % 6 0) {count;}}cout count endl;return 0;
}