Using ternary operator if (t ==50) r=t*10; else r=t*5
Answers
Answered by
1
ternary operator
r=(t==50)?t*10:t*5;
r=(t==50)?t*10:t*5;
Similar questions
Accountancy,
7 months ago
Environmental Sciences,
7 months ago
English,
7 months ago
Physics,
1 year ago
History,
1 year ago
Math,
1 year ago