码迷,mamicode.com
首页 > 其他好文 > 详细

1%一个整数,还是1

时间:2016-12-25 11:24:44      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:stdio.h   nbsp   bre   bsp   include   std   tin   continue   int   

#include <stdio.h>

int main()
{
    int i=0;
    while (++i)
    {
        if(i==10) break;
        if(i%3!=1) continue;
        printf("%d",i);
    }
}

输出147

 

1%一个整数,还是1

标签:stdio.h   nbsp   bre   bsp   include   std   tin   continue   int   

原文地址:http://www.cnblogs.com/Legen-da/p/6219127.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!