Search:

Type: Posts; User: JessicaCouture95

Search: Search took 0.11 seconds.

  1. Re: for loop that calculates the total of a series of numbers

    Just compiled and executed. It looks good, thank you!
  2. Re: for loop that calculates the total of a series of numbers

    Just revised my code. Does this look good?



    public class Count
    {

    public static void main (String[] args)
    {
    double sum = 0;
  3. Re: for loop that calculates the total of a series of numbers

    This is what I have so far:




    for (int x = 1, y = 30; x <= 30, y >= 1; x++, y--)
    {
    int sum = 0;
    sum += (x/y);
    }
  4. Re: for loop that calculates the total of a series of numbers

    I understand the series, and I understand what is being asked of me. But, I do not understand how to set it up in a for loop. I just learned for loops in my class, and I am not sure if this for loop...
  5. for loop that calculates the total of a series of numbers

    Hi, I am having troubles with creating a for loop that calculates the total of a series of numbers: 1/30 + 2/29 + 3/28 + ... 30/1. I don't know where to start and need some help!
Results 1 to 5 of 5