橘子味的心
标题:C实例 找奇数或偶数程序

C实例 找奇数或偶数程序

#include <stdio.h>



int main() {

   int even = 24;

   int odd  = 31;



   if (even % 2 == 0)

      printf("%d is even\n", even);



   if (odd % 2 != 0 )

      printf("%d is odd\n", odd);



   return 0;

}

目录

分类