正在加载图片...
if- else if control f (score >=90) messageBox. show(Your grade is A) Test Score Grade else if (score >= 80 90≤ score messageBox. show(" Your grade is b)i 80≤ score<90 ABCD else if(score >= 70 70≤ score<80 messageBox. show("Your grade is c)i 60≤ score<70 score <60 F lse if (score >=60) messageBox. show(Your grade is D") else messageBox. show(Your grade is F)i C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6-17© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6 - 17 if – else if Control if (score >= 90) messageBox.show("Your grade is A"); else if (score >= 80) messageBox.show("Your grade is B"); else if (score >= 70) messageBox.show("Your grade is C"); else if (score >= 60) messageBox.show("Your grade is D"); else messageBox.show("Your grade is F"); Test Score Grade 90  score A 80  score  90 B 70  score  80 C 60  score  70 D score  60 F
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有