Computer Science, asked by joypg123456gmailcom, 5 months ago

Rewrite the following using if else
m=(x=='a)?'A':'a';​

Answers

Answered by imtiyazallam
0

Answer:

if(x == 'a'){

m = 'A';

}else{

m = 'a';

}

Answered by anindyaadhikari13
1

Question:-

  • Rewrite the following using if else.

Solution:-

Given code,

m=(x=='a)?'A':'a';

This can be written using if else statement as,

if(x=='a')

m='A'

else

m='a';

Similar questions