缘由c++编程怎么写,紧急求解-编程语言-CSDN问答
void 三七二十一数()
{//缘由https://ask.csdn.net/questions/7566632?spm=1005.2025.3001.5141
int n = 0, a = 0, b = 0, p = 1;
std::cin >> n;
while (n--)
{
std::cin >> a >> b;
while (a<=b)
{
if (a % 3 == 2 && a % 7 == 1)
std::cout << a << "\t", p = 0; else;
++a;
}
}
if (p)std::cout << "none";
}