B
问题描述
请问在 1 到 2020 中,有多少个数既是 4 的整数倍,又是 6 的整数倍。
答案提交
这是一道结果填空的题,你只需要算出结果后提交即可。本题的结果为一个整数,在提交答案时只填写这个整数,填写多余的内容将无法得分。
安排!
#include <bits/stdc++.h>
using namespace std;
int main()
{
int res = 0;
for(int i = 1;i<=2020;i++)
{
if(i%4==0&&i%6==0)
{
res++;
}
}
cout<<res<<endl;
return 0;
}
答案:168
题A: https://blog.csdn.net/FG_future/article/details/114456485
题B:https://blog.csdn.net/FG_future/article/details/114456603
题C:https://blog.csdn.net/FG_future/article/details/114456686
题D:https://blog.csdn.net/FG_future/article/details/114735667
题E:https://blog.csdn.net/FG_future/article/details/114735794
题F:https://blog.csdn.net/FG_future/article/details/114735934
题G:https://blog.csdn.net/FG_future/article/details/114736107
题H:https://blog.csdn.net/FG_future/article/details/114736189
题J:https://blog.csdn.net/FG_future/article/details/114736383