Created
May 21, 2017 17:21
-
-
Save peter279k/98dce619d279620e265ca3b7be495bd8 to your computer and use it in GitHub Desktop.
TQC+ JAVA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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