Rewrite the following using ternary operators if(a!=b) p= a-b else p=b-a
Answers
Answered by
2
Answer:
p=(a!=b)?a-b:b-a
This is a way how ternerary oper. is used
Similar questions