首页 > 其他 > 详细

500以内所有的奇数偶数

时间:2019-12-19 13:32:48      阅读:400      评论:0      收藏:0      [点我收藏+]
 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 
 4 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 5 
 6 int main(int argc, char *argv[]) {
 7 
 8         int i=0;
 9         for(i=0;i<=500;i++)
10         {
11             if(i%2==0)//I%==1
12             {
13                 printf("%d\t",i);
14             }
15          }    
16     return 0;
17 }

500以内所有的奇数偶数

原文:https://www.cnblogs.com/MegaByte/p/12067102.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!