What is an efficient way to describe three different cases for x<y, x>y and x=y? Here x and y are two numbers. I thought the following:
x<y
x>y
x=y
x
y
if (x<y) { ... } if (x>y) { ... } if (x=y) { ... }
Maybe I could use ifelse statement?
ifelse
Aucun commentaire:
Enregistrer un commentaire