Title:
From the keyboard to enter a positive integer, whether it can be divided exactly by 5, and 7 at the same time, if the output "YES", otherwise output "NO",
Corrects the AI said the answer has a problem, I just don't see where is the problem, welcome to discuss together,
CodePudding user response:
AI says the problem is the problem??????? Believe in yourself
CodePudding user response:
D %
->
% d
CodePudding user response:
& & Is with
CodePudding user response:
reference 1/f, not smell out the window of the reply: AI says the problem is the problem??????? Believe in yourself Ha, ha, ha, I hope, thank you CodePudding user response:
The reference 4 floor printf (" milk thought! \n"); Response: Quote: refer to 1st floor not smell out the window of the reply: AI says the problem is the problem??????? Believe in yourself Ha, ha, ha, I hope, thank you Ha a wool ah, that's not on the second floor show you questions, not d % d % CodePudding user response:
reference liups reply: 3/f & amp; & Is with well well well, I believe that I didn't make a mistake, If input a number can be divided exactly by 5 can also be divided exactly by 7 (" | | "on the left to the right is 0), so if the judgment of the back should be false is false (logic or: false at the same time), then output" YES ", just is right ah, CodePudding user response:
refer to the second floor Italink response: d %-> % d Who is not fine, don't understand what is meant by the CodePudding user response:
The reference 6 floor printf (" milk thought! \n"); Response: Quote: reference liups reply: 3/f & amp; & Is with well well well, I believe that I didn't make a mistake, If input a number can be divided exactly by 5 can also be divided exactly by 7 (" | | "on the left to the right is 0), so if the judgment of the back should be false is false (logic or: false at the same time), then output" YES ", just is right ah, Program logic should be clear! You though this logic is right, but not easy to understand, not recommended CodePudding user response:
The reference 7 floor printf (" milk thought! \n"); Response: Quote: refer to the second floor Italink response: d %-> % d Who is not fine, don't understand what is meant by the Yo format control characters to write the wrong, not % d, % d CodePudding user response:
5, and 7 is a prime direct judgment can be divided exactly by 35 CodePudding user response:
I think to judge both can be divided exactly by 5 and can be divided exactly by 7, then the output YES will be better, if you put this in the else there, there will be a lot of kinds of situation, if you write, can not be divided exactly by 5 will not be divided exactly by 7 will output YES (and symbol is & amp; & amp;) 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