Marks Average Program in Java

import java.util.Scanner;
public class JavaMarksAverage
{
    public static void main(String[] args) 
	{
        int math,english,science,art,computer,total,percent;
        Scanner sc=new Scanner(System.in);
        System.out.println("Enter marks out of 100");
        System.out.print("Enter marks of math=");
        math=sc.nextInt();
        System.out.print("Enter marks of english=");
        english=sc.nextInt();
        System.out.print("Enter marks of science=");
        science=sc.nextInt();
        System.out.print("Enter marks of art=");
        art=sc.nextInt();
        System.out.print("Enter marks of computer=");
        computer=sc.nextInt();
        
        total=math+english+science+art+computer;
        System.out.println("Total marks out of 500="+total);
        
        percent=total/5;
        System.out.println("Percent of marks="+percent);
    }
}


Output:

Enter marks out of 100
Enter marks of math=45
Enter marks of english=68
Enter marks of science=78
Enter marks of art=48
Enter marks of computer=78
Total marks out of 500=317
Percent of marks=63
b. tech. bca icse java java tutorials learn java mca programs