Computer Science, asked by Anhad006, 7 months ago

Re-write the below statement using if-else statement :

char grade= (percentage>90)? 'A': 'B';​

Answers

Answered by yesiamin6
3

Answer:

The code as follows

if(percentage >90)

grade ='A'

else

grade='B'

Explanation:

HOPE IT HELPS YOU

DO FOLLOW FOR MORE ANSWERS/PROGRAMS

MARK AS BRAINLIEST

Answered by anindyaadhikari13
1

Answer:-

Using if-else statement, we can write like this,

if(percentage>80)

grade='A';

else

grade='B';

Similar questions