500以内所有的奇数偶数


 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 }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM