/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package codeit; import java.util.Scanner; /** * * @author vasil */ public class CodeIT { /** * @param args the command line arguments */ public static void main(String[] args) { int i,a,sum; System.out.println("Въведете броя на бурканите с мед(1<=N<=5000)"); System.out.print("N="); Scanner s=new Scanner(System.in); int N= s.nextInt(); int[] arr= new int[N]; System.out.println("Размера на буркана трябва да е между 1 и 1 000 000!"); if((N<1) && (N>5000)){ System.out.println("Грешен размер на буркана!"); s.nextLine(); } else{ for(i=0; i