解题思路:
注意事项:
参考代码:
#include <cstdio> #include <cstdlib> #include <iostream> #include <cstring> #include <cctype> #include <string> #include <algorithm> #include <functional> using namespace std; char s[70]; int main() { int n; scanf("%d", &n); while(n--) { scanf("%s", s); if(s[strlen(s)-1]&1) { printf("odd\n"); } else { printf("even\n"); } } return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题6.6 (C++代码)浏览:633 |
Hello, world! (C语言代码)浏览:714 |
分糖果 (C语言代码)浏览:920 |
找出最长的字符串来 (C语言代码)浏览:1770 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:646 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:560 |
拯救雅典娜浏览:1241 |
A+B for Input-Output Practice (II) (C++代码)浏览:644 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:2126 |
P1003 (Java代码)浏览:759 |