Enter an integer to integer, judge is odd or even number,
CodePudding user response:
The wrong
I don't know how to calculate, our school have a computer lesson, lesson I learn can't, if you know you can tell me? Recommended APP. This is my classmate, I want to find a great god take area, kneel
CodePudding user response:
refer to the second floor weixin_46484436 response: this wrong I don't know how to calculate, our school have a computer lesson, lesson I learn can't, if you know you can tell me? Recommended APP. This is my classmate, I want to find a great god take area, kneel beg Your input lack transformation, enter the default input function is a string, you need to turn it into an integer, should be like this: N=int (input (' please enter an integer: ')) If n % 2==1: Print (' odd ') The else: Print (' even ') CodePudding user response:
reference Hajo_ reply: 3/f Quote: refer to the second floor weixin_46484436 response: this wrong I don't know how to calculate, our school have a computer lesson, lesson I learn can't, if you know you can tell me? Recommended APP. This is my classmate, I want to find a great god take area, kneel beg Your input lack transformation, enter the default input function is a string, you need to turn it into an integer, should be like this: N=int (input (' please enter an integer: ')) If n % 2==1: Print (' odd ') The else: Print (' even ') Thank you very much!!!!!! Is there any problem also can seek advice you later? I was a simple question, CodePudding user response:
reference 4 floor weixin_46484436 response: Quote: refer to the third floor Hajo_ response: Quote: refer to the second floor weixin_46484436 response: this wrong I don't know how to calculate, our school have a computer lesson, lesson I learn can't, if you know you can tell me? Recommended APP. This is my classmate, I want to find a great god take area, kneel beg Your input lack transformation, enter the default input function is a string, you need to turn it into an integer, should be like this: N=int (input (' please enter an integer: ')) If n % 2==1: Print (' odd ') The else: Print (' even ') Thank you very much!!!!!! Is there any problem also can seek advice you later? I was some simple questions, Can, later can direct messages to me, I can solve will help you to see CodePudding user response:
reference 5 floor Hajo_ reply: Quote: refer to 4th floor weixin_46484436 response: Quote: refer to the third floor Hajo_ response: Quote: refer to the second floor weixin_46484436 response: this wrong I don't know how to calculate, our school have a computer lesson, lesson I learn can't, if you know you can tell me? Recommended APP. This is my classmate, I want to find a great god take area, kneel beg Your input lack transformation, enter the default input function is a string, you need to turn it into an integer, should be like this: N=int (input (' please enter an integer: ')) If n % 2==1: Print (' odd ') The else: Print (' even ') Thank you very much!!!!!! Is there any problem also can seek advice you later? I was some simple questions, Can, later can direct messages to me, I can solve will help you see Thank you very much, your smile, CodePudding user response:
Beginners often make the mistake, you must convert, into a integer