You need to reset your "add" to 0 for each loop, try this:
import java.util.*;
public class Chapter5Ex1
{
static Scanner console = new Scanner(System.in);
public static void...
Type: Posts; User: seohulu
You need to reset your "add" to 0 for each loop, try this:
import java.util.*;
public class Chapter5Ex1
{
static Scanner console = new Scanner(System.in);
public static void...