Level 4, the test result & gt;=425: can enter oneself for an examination level 6
Level 4, the test result & gt;=550: can enter oneself for an examination the speaking test
6, the test result & gt;=520: can enter oneself for an examination the speaking test
Program, input level exam (4 or 6) and test scores (0 ~ 710), according to the different situation to output:
Level 4 is less than 425 points, output: almost can enter oneself for an examination level 6,
Six levels of less than 520 points, output: almost can enter oneself for an examination the spoken language,
Other conditions, the output: you can enter oneself for an examination level 6 (or you can enter oneself for an examination the speaking test), note that if the level is more than 550 points, to output: can enter oneself for an examination level 6 and speaking test,
Asked to judge the validity of the input data, that is to say, if the input is invalid data, such as the test level input 3, 750 test scores input, indicates that the input is invalid,
CodePudding user response:
Can use first if - else to write about, and then change to the switch... Case form;