C语言程序设计-谭浩强

时间:2020-03-13 15:53:06   收藏:0   阅读:49

要求输出100-200的不能被3整除的数

#include<stdio.h>
int main()
{
int num;
for (num = 100; num <= 200;num++)
{
if (num%3!=0)
{
printf("%d ", num);
}

}


return 0;
}

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!