/*
Program to calculate percentage obtained */
import java.util.Scanner;
import java.util.*;
public class Main {
public static void main(String[] args)
{
int size, sum = 0;
System.out.print("Enter no. of Subjects:-");
Scanner s = new Scanner(System.in);
size = s.nextInt();
int a[] = new int[size];
System.out.println("Enter marks of all Subjects-:");
for(int i = 0; i < size; i++)
{
a[i] = s.nextInt();
sum = sum + a[i];
}
System.out.println("Sum:"+sum);
int xyz=sum;
float percentage;
System.out.println("Enter the total marks :");
percentage=(xyz/size)*100;
float et=percentage/100;
System.out.println("Percentage:"+et +"%");
}
}