Home > Back-end >  New people for help
New people for help

Time:06-10

Enter a positive integer (as end mark by zero or negative), and the odd and even number and even requirements definition and the function (n) to determine the number of parity, when n is even return 1, otherwise it returns 0,

CodePudding user response:

So simple won't write? Odd-even judgement n % 2==0 equals is an even number is not equal to is the odd number

CodePudding user response:

Should first try to write myself,,

CodePudding user response:

Not recommended without their analysis and thinking about take out and asked, and if they can start work from the Internet, or their verification, not after the
Operation problem, also do not recommend to ask others,

Programming if you want to eat this bowl of rice, that will improve their initiative, more to try, how to search, don't be afraid to make mistakes and trouble ~

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related