标签:stdio.h color class get ret tchar bsp c语言 etc
常规01:
#include <stdio.h> int main(void) { int i; scanf("%d",&i); if (i%2 == 0) { printf("%d 是偶数\n", i); } getchar(); return 0; }
常规02:
#include <stdio.h> int main(void) { int i; scanf("%d",&i); if (i%2 == 0) { printf("%d 是偶数\n", i); } else { printf("%d 是奇数\n", i); } getchar(); return 0; }
常规03:
#include <stdio.h> int main(void) { int i; scanf("%d",&i); if (i%2 == 0) { printf("%d 是偶数\n", i); } else if (i%2 != 0) { printf("%d 是奇数\n", i); } getchar(); return 0; }
标签:stdio.h color class get ret tchar bsp c语言 etc
原文地址:https://www.cnblogs.com/cdrapp/p/9194133.html