编辑代码

#include <stdio.h>
int main () {
    int i;
    for (i=1;i<=100;i++)
    {
        printf("Testing %d\n",i);
        if ((i%3==0)&&(i%4==0))
        {
            printf("Found it!\n");
            break;
        }
        if (i%3==0)
        {
            printf("I'm divisible by 3.\n");
            printf("But that's only half the test!\n");
            continue;
        }
        if (i%4==0)
        {
            printf("I'm divisible by 4.\n");
            printf("But that's only half the test!\n");
            continue;
        }
        printf("I'm not divisible by 3 or 4!\n");
    }
	return 0;
}