看n的奇偶性,题解参见kuangbin的博客 http://www.cnblogs.com/kuangbin/archive/2013/07/22/3204654.html
#include<iostream> using namespace std; int main(){ int n; while(cin>>n && n) puts(n&? "); }
看n的奇偶性,题解参见kuangbin的博客 http://www.cnblogs.com/kuangbin/archive/2013/07/22/3204654.html
#include<iostream> using namespace std; int main(){ int n; while(cin>>n && n) puts(n&? "); }