解题思路:
注意事项:
参考代码:
#include<bits/stdc++.h>
using namespace std;
int ch(int t)
{
if(t%2!=0) return 1;
else return 0;
}
int main()
{
int a[101],n;
cin>>n;
for(int i=0;i<n;i++)
cin>>a[i];
for(int i=0;i<n;i++)
{
if(ch(a[i])) cout<<"true"<<"\n";
else cout<<"false"<<"\n";
}
}
0.0分
0 人评分
奖学金 (C++代码)浏览:2013 |
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)浏览:624 |
输出正反三角形 (C语言代码)浏览:799 |
WU-格式化数据输出 (C++代码)浏览:1221 |
WU-输入输出格式练习 (C++代码)浏览:1086 |
1009题解浏览:759 |
A+B for Input-Output Practice (C语言代码)浏览:482 |
C二级辅导-分段函数 (C语言代码)浏览:603 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:357 |
盐水的故事 (C语言代码)浏览:1535 |