How can i fix determineGrade(); so that after entering every new Int input it gives you a grade. I could just repeat res1 for res2 and res3 but isnt there a simplier way?

```
import java.util.Scanner;

public class Answer3 {

    static int avg;

    static int res1;

    static int res2;

    static int res3;

    static Scanner inPut = new Scanner(System.in);

    public static void main(String[] args) {

        calcAverage();

    }

    static void calcAverage()
    {

        System.out.println("Please input exam 1 results");
        res1 = inPut.nextInt();
        determineGrade();
        System.out.println("Please input exam 2 results");
        res2 = inPut.nextInt();
        determineGrade();
        System.out.println("Please input exam 3 results");
        res3 = inPut.nextInt();
        determineGrade();
        avg = (res1 + res2 + res3) / 3;

        System.out.println("The average of these exam results are " + avg);
    }

    static void determineGrade()
    {
        String grade = null;

        if ( res1 > 84 && res1 <101  )
        {
            grade = "HD";
        }
        else if ( res1 > 74 && res1 <85 )
        {
            grade = "D";
        }
        else if ( res1 > 64 && res1 < 75 )
        {
            grade = "C";
        }
        else if ( res1 > 49 && res1 < 65 )
        {
            grade = "P";
        }
        else if ( res1 < 50 )
        {
            grade = "F";
        }

        System.out.println("Your grade is " + grade);
    }

}

```