Search:

Type: Posts; User: Faz

Search: Search took 0.11 seconds.

  1. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    I just spotted that by chance from now on don't tell us what the output wasn't tell us what it was. We can't tell much just from what you expect the programme to do can we?
  2. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    So what was the output? You have gallons as an int but you are passing it a double.
  3. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    Well you tell us what is actually happening now?
  4. Thread: Flaw in my code

    by Faz
    Replies
    14
    Views
    3,467

    Re: Flaw in my code

    OK first of all see what happens when you change


    distance = miles;

    for


    miles = distance;
Results 1 to 4 of 4