Rewrite the following using ternary operators if(a!=b) p= a-b else p=b-a
Answers
Answered by
2
Explanation:
p=a-a!,
p=a!-a
hope it's helpful...
Answered by
8
Rewritten using Ternary Operators:
p = (a != b) ? a - b : b - a;
Similar questions
Accountancy,
5 months ago
Math,
5 months ago
Math,
5 months ago
English,
10 months ago
Environmental Sciences,
10 months ago
Chemistry,
1 year ago