import java.util.Scanner;
class Percentage
{
public static void main(String ar[])
{
Scanner d=new Scanner(System.in);
System.out.println("Enter the makrs of English: ");
int e=d.nextInt();
System.out.println("Enter the makrs of Physics : ");
int p=d.nextInt();
System.out.println("Enter the makrs of Chymistry: ");
int c=d.nextInt();
System.out.println("Enter the makrs of Biology: ");
int b=d.nextInt();
System.out.println("Enter the makrs of Arbic: ");
int a=d.nextInt();
int t=e+p+c+b+a;
System.out.println("Total ="+t);
double per =t/5;
System.out.println("Percentage is "+per);
}
}
Output: