Question: Use nested conditional operators to complete this question: Students with scores> = 90 are represented by a, students with scores between 60 and 89 are represented by B, and students with scores below 60 are represented by C.
1.ProgramAnalysis: (A> B )? A: B is a basic example of conditional operators.
Package WZS. arithmetics; // question: Use nested conditional operators to complete this question: Students with scores> = 90 are represented by a, and students with scores between 60 and 89 are represented by B, the value below 60 is represented by C. // 1. program analysis: (A> B )? A: B is a basic example of conditional operators. Public class test_wzs5 {public static void main (string [] ARGs) {test_wzs5.f (99); test_wzs5.f (72); test_wzs5.f (50 );} /*** determine the interval * @ Param Number */public static void F (INT number) {string STR = (number> 90? "A": (number> 60? "B": "C"); system. Out. println (STR );}}