Skip to content

Instantly share code, notes, and snippets.

@peter279k peter279k/JPA01.java
Created May 21, 2017

Embed
What would you like to do?
TQC+ JAVA
public class JPD01 {
public static int adder (int s, int a, int e) {
return s + a + e;
}
public static int gameRating (int s, int a, int e) {
return adder(s, a, e);
}
public static void main (String argv[]) {
int skill = 6, action = 9, excitment = 8, result;
result = gameRating(skill, action, excitment);
System.out.print("The rating of the game is ");
System.out.println(result);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.