Computer Science, asked by pawanks934, 7 months ago

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

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

Answers

Answered by BrainlyProgrammer
1

Answer:

if (percentage>90)

char grade='A';

else

char grade='B';

Answered by anindyaadhikari13
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