Search:

Type: Posts; User: djl1990

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    1,598

    Re: Easy Java Problem

    If your tutor or assignment advises to use a for loop you may want something like this:

    Scanner input = new Scanner (System.in);
    int count, n, sum = 0;
    //count is number of...
  2. Replies
    9
    Views
    1,598

    Re: Easy Java Problem

    Ah right, for some reason i thought he wanted to type in 3 grades.
  3. Replies
    9
    Views
    1,598

    Re: Easy Java Problem

    I dont see the need for a loop in this.

    A much simpler way would be this:


    int grade1, grade2, grade3;

    System.out.println("Enter 3 grades to find average: ");
    Scanner scan...
Results 1 to 3 of 3