Results 1 to 5 of 5
Thread: Java - ,
Hybrid View
-
24th April 2011 13:23 #1
Java - ,
5 7 . - .
:
2 boolean Comparing Identical Expressions, == >= , ..Code:public class glava3zadacha2 { public static void main(String[] args) { boolean a = ((35 % 5) == 0); boolean b = ((35 % 7) == 0); System.out.println(a && b); } }
.. Eclipse.
-
24th April 2011 13:42 #2Registered User
Join Date: Oct:2003
Location:
Posts: 4,317
35%5, , 0, , 0==0.
, " ...", " 35 ".
-
24th April 2011 13:51 #3
, TRUE 35. False, ?
---------- 11:51 ---------- 11:49 ----------
, - :
int c = 35;
boolean a = ((c % 5) == 0);
boolean b = ((c % 7) == 0);
System.out.println(a && b);
?
-
24th April 2011 14:10 #4
-
24th April 2011 14:17 #5
C++, Java ,
. -. , .
..
Last edited by Darkbound; 24th April 2011 at 16:04.




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in