A Aircon Elite Feb 25, 2023 #1 pahelp naman po !x && x >= 3 value ng x = 7 true or false? paki explain naman po and how siya icode using java
pahelp naman po !x && x >= 3 value ng x = 7 true or false? paki explain naman po and how siya icode using java
TS TS A Aircon Elite Feb 25, 2023 #3 FreeAllYouCan-OFFICIAL said: !x is x boolean? Click to expand... pano po pag basic coding muna po like this one
FreeAllYouCan-OFFICIAL said: !x is x boolean? Click to expand... pano po pag basic coding muna po like this one
F FreeAllYouCan-OFFICIAL Grasshopper Feb 26, 2023 #4 Aircon said: pano po pag basic coding muna po like this one View attachment 2534325 Click to expand... variable assignment cannot be used on logical E×ρréššion correct way ! (x == 0) && x >= 3 since x = 7 is declared or assigned thus evaluates the E×ρréššion as true since the urinary operator ! negates the E×ρréššion x == 0 (false) x == 0? false since x is declared with a variable 7 ! (false) = true
Aircon said: pano po pag basic coding muna po like this one View attachment 2534325 Click to expand... variable assignment cannot be used on logical E×ρréššion correct way ! (x == 0) && x >= 3 since x = 7 is declared or assigned thus evaluates the E×ρréššion as true since the urinary operator ! negates the E×ρréššion x == 0 (false) x == 0? false since x is declared with a variable 7 ! (false) = true