repl.it
@Brawn/

Mastery Project #3C Code #2

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
Name: Allan Abraham
Purpose: finds the average of 3 numbers
*/
public class Main {
	public static void main(String[] args) {
		average(5, 9, 4);
	}
	public static void average(int x, int y, int z) {
		int average = (x + y+ z)/3;
    	System.out.print("Your Average: "+average);
	
	}
}
?