Search:

Type: Posts; User: grayaa93

Search: Search took 0.21 seconds.

  1. Replies
    2
    Views
    180

    If Statements Using Elements in an Array

    Hi everyone,

    Have a program that requires data validation from user inputs and currently the way I have it setup is with "magic numbers". In the do-while loops there is an if statement that will...
  2. Replies
    4
    Views
    473

    Re: Is My Math Wrong?

    Just wanted to first off come back and let you know I updated the code entirely, just to make it easier to read and also to fix some poor coding style on my own part, but the problem still stands. I...
  3. Replies
    4
    Views
    473

    Re: Is My Math Wrong?

    That's exactly the issue im having! When I write it out on paper the problem happens after in the if (slicesNeeded >= 4) statement im sure.
    Writing it all out starting with the first if statement:...
  4. Replies
    4
    Views
    473

    Is My Math Wrong?

    Hi everyone,

    This will be my first post in the forums! Have an assignment where user has to input number of people at a party, the amount of pizza slices per person and then how many pizzas will...
Results 1 to 4 of 4