Which of the following expressions will evaluate to true? 12 / 5 != 2.0 12 / 5.0 == 2.0 (int)(12.0 / 5.0) == 2.0
@JustSaiyan
All of the nope. @Ultrilliam Wake your Air up
Lol thanks anyways aha
I thought maybe it would be like my computer science class. "Where is the alt key located?" XD
I had that class dropped.
bahahahha dude why
Because it felt insulting, I know how to use a computer, LOL.
Oh shiiiiiiiiiiiiiit i gotta get to my training thanks again for trying bro
i'll wake up ultri, lol
12/5.0 becomes 2.4 since integer/double = double. 2.4 == 2.0 will become false
(int)(12.0/5.0) becomes (int)(2.4) which becomes 2. an integer. 2 == 2.0 evaluates to true
12/5 becomes 2 since integer/integer is an integer. 2 != 2.0 will evaluate to false.
^Beat me to it, have a medal
Join our real-time social learning platform and learn together with your friends!