#include <stdio.h>
int main() {
int num = 7;
if (num % 2 == 0) {
printf("%d is even\n", num);
} else {
printf("%d is odd\n", num);
}
return 0;
}
标签:even,判断,return,奇数,int,是否是,num,printf,main From: https://blog.51cto.com/u_16284467/8195471
#include <stdio.h>
int main() {
int num = 7;
if (num % 2 == 0) {
printf("%d is even\n", num);
} else {
printf("%d is odd\n", num);
}
return 0;
}
标签:even,判断,return,奇数,int,是否是,num,printf,main From: https://blog.51cto.com/u_16284467/8195471