Results 1 to 3 of 3

Thread: Java ,

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered 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);

  2. #2
    Math Lover haho's Avatar
    Join Date: Apr:2006
    Location:
    Posts: 695
    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.0
    It seems that perfection is attained not when there is nothing more to add, but when there is nothing more to remove.

  3. #3
    Registered User
    Join Date: Jan:2012
    Location: Sofia
    Posts: 3
    !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |