public class UwagzKa { public static void main (String[] args){ int a = 0; int min = 0; int max = 0; int num = 0; do { System.out.print("Enter numbers-->"); num = SavitchIn.readLineInt(); if(num==0) System.out.println("Numbers must be positive"); } while(num>0); while(num>0) if (num > 0){ min = num; max = num; } else if (num < min){ min = num; } else if (num > max){ max = num; } System.out.println("Max " +max); System.out.println("Min " +min); } }

This is what I have done so far, but it doesn't work. My minimum and maximum doesn't work. I'm still fourteen so I can't still understand some things. Thanks so much everyone. :]