📜  java中判断数是否为素数的程序——C语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.880000             🧑  作者: Mango

代码示例1
#include void main(){int value, rem;printf("Enter an int ");scanf("%d", &value);rem = value % 2;if (rem == 0)printf("%d is an even int\n", value);elseprintf("%d is an odd int\n", value);}