Rewrite the following using if else
m=(x=='a)?'A':'a';
Answers
Answered by
0
Answer:
if(x == 'a'){
m = 'A';
}else{
m = 'a';
}
Answered by
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