输出两位数中所有能被3和5整除的数

int main(void) {
    for (int i = 10; i <100; i++)
    {

        if (i % 3 == 0 && i % 5 == 0) {
            printf("%d\n", i);
        }
    }
    return 0;
}

猜你喜欢

转载自blog.csdn.net/m0_62247560/article/details/125037685