Results 1 to 3 of 3
Thread: Java ,
Hybrid View
-
24th October 2013 14:45 #1Registered User
Join Date: Jan:2012
Location: Sofia
Posts: 3
Java ,
, JAVA , , , , " = ++" , , "/=" . . :
int a=6, b=5, c=2, d=100;
a=a++;
d/= 3+ ++a / c % b++ / 2. - 2.5;
System.out.println(d);
-
24th October 2013 23:59 #2
Java , .
int a=6, b=5, c=2, d=100;
a=a++; //
d/= 3+ ++a / c % b++ / 2. - 2.5;
- ++.
a 7, b 5
/ %
d = 100 / (3 + 7/2%5/2.0 - 2.5) // 7/2 integers 3
d = 100 / (3 + 3%5/2.0 - 2.5) // 3 5 3
d = 100 / (3 + 3/2.0 - 2.5)
d = 100 / (3 + 1.5 - 2.5)
d = 100 / (4.5 - 2.5)
d = 100 / (2.0)
d = 50.0It seems that perfection is attained not when there is nothing more to add, but when there is nothing more to remove.
-
25th October 2013 12:45 #3Registered User
Join Date: Jan:2012
Location: Sofia
Posts: 3
!




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