Re-write the below statement using if-else statement :
char grade= (percentage>90)? 'A': 'B';
Answers
Answered by
1
Answer:
if (percentage>90)
char grade='A';
else
char grade='B';
Answered by
1
Answer:-
Using if-else construct, we can write like this,
char grade;
if(percentage>90)
grade='A';
else
grade='B';
Have a great day ahead.
Similar questions