Results 1 to 5 of 5

Thread: Java - ,

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Darkbound's Avatar
    Join Date: Apr:2011
    Location: Varna
    Posts: 240

    Java - ,

    5 7 . - .

    :

    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);
    
    	}
    
    }
    2 boolean Comparing Identical Expressions, == >= , ..

    .. Eclipse.

  2. #2
    Registered User
    Join Date: Oct:2003
    Location:
    Posts: 4,317
    35%5, , 0, , 0==0.
    , " ...", " 35 ".

  3. #3
    Registered User Darkbound's Avatar
    Join Date: Apr:2011
    Location: Varna
    Posts: 240
    , 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);

    ?

  4. #4
    Registered User cecko19's Avatar
    Join Date: Jan:2011
    Location: Sofia
    Posts: 82
    "c" ?

  5. #5
    Registered User Darkbound's Avatar
    Join Date: Apr:2011
    Location: Varna
    Posts: 240
    C++, Java , . -. , .

    ..
    Last edited by Darkbound; 24th April 2011 at 16:04.

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 |