mardi 18 juillet 2017

How to rewrite if else structure code by using arithmetic operations?

if(x == 1)
    y = a;
else
    y = b;

I wonder the way that can be rewritten this code via arithmetic operations!

Aucun commentaire:

Enregistrer un commentaire