Why won' the average work? when i enter 10 for the first number, then 20 for the second number, it returns an average of 5.
Type: Posts; User: gotdatdough
Why won' the average work? when i enter 10 for the first number, then 20 for the second number, it returns an average of 5.
import java.text.DecimalFormat;
import java.util.Scanner;
public class Average {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int value, count = 1, sum =...