public static int add(int ...a){int sum=0;for(int i=0;i<a.length;i++){sum+=a[i]}return sum;}
public static void main(String[] args) {
System.out.println(add(3,5,7,5));
}
public static int add(int ...a){int sum=0;for(int i=0;i<a.length;i++){sum+=a[i]}return sum;}
public static void main(String[] args) {
System.out.println(add(3,5,7,5));
}