Re-write the below statement using if-else statement :
char grade= (percentage>90)? 'A': 'B';
Answers
Answered by
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
1
Answer:-
Using if-else statement, we can write like this,
if(percentage>80)
grade='A';
else
grade='B';
Similar questions
Computer Science,
3 months ago
Computer Science,
3 months ago
Math,
3 months ago
World Languages,
7 months ago
Biology,
7 months ago
History,
1 year ago
English,
1 year ago
History,
1 year ago