Search:

Type: Posts; User: ColeTrain

Search: Search took 0.12 seconds.

  1. Re: Use a boolean to find if a number is divisible

    nevermind, i actually ended up figuring it out.

    Heres what I ended with:



    import java.util.Scanner;

    public class Pg127 {
  2. Re: Use a boolean to find if a number is divisible

    heres what i have so far... dont have the divisibility equation yet.



    import java.util.Scanner;

    public class Pg127 {
    public static void main(String[] args) {

    //Input...
  3. Re: Use a boolean to find if a number is divisible

    well actually it doesnt have to be boolean i realized. I have no idea how to see if a number is divisible by another, so help needed there. But as for the data type i just need one that states true...
  4. Use a boolean to find if a number is divisible

    i am making a program to see if a number is divisible by 5 and/or 6. how do i do this using a boolean? the user inputs and int and then i calculate it and tell them true and/or false. thanks
Results 1 to 4 of 4