Search:

Type: Posts; User: nadrii

Search: Search took 0.10 seconds.

  1. Replies
    15
    Views
    1,729

    Re: simple arithmetic problem

    I'm looking around a bit and seeing some stuff about using pound signs to designate how many decimal points will be printed out. Anyone know anything about this?

    edit:
    This post cleared it up for...
  2. Replies
    15
    Views
    1,729

    Re: simple arithmetic problem

    Ooo, that worked! I realized just now I had set E to a float a while back as I was trying to solve this problem. Converting them to doubles using this method worked though.

    My only issue now,...
  3. Replies
    15
    Views
    1,729

    Re: simple arithmetic problem

    int test1, test2;

    test1 = (int) Double.parseDouble(Integer.toString(A));
    test2 = (int) Double.parseDouble(Integer.toString(B));

    C = test1 / test2;
    System.out.print("The value of C is " + C +...
  4. Replies
    15
    Views
    1,729

    Re: simple arithmetic problem

    Well right now I'm trying the following:


    A = (int) Double.parseDouble(Integer.toString(A));
    B = (int) Double.parseDouble(Integer.toString(B));

    C = A / B;
    System.out.print("The value of C is...
  5. Replies
    15
    Views
    1,729

    Re: simple arithmetic problem

    The entire program works just fine. I've scanned in two separate integers using two separate print statements. They're now stored in two separate variables, let's say A and B (for reference).

    I...
  6. Replies
    15
    Views
    1,729

    simple arithmetic problem

    Hello. I'm new here and simply looking for help to a problem I'm having.

    I have a program requesting user input for two variables as integers. I then have a third variable set as a double that I...
Results 1 to 6 of 6