Computer Science, asked by richasingh10c2005052, 4 months ago

Rewrite the following using ternary operators if(a!=b) p= a-b else p=b-a​

Answers

Answered by RvP10
2

Answer:

p=(a!=b)?a-b:b-a

This is a way how ternerary oper. is used

Similar questions