import java.util.Scanner;
public class main1 {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the name of student : ");
String n = sc.nextLine();
System.out.println("Enter the total marks to be scored : ");
int total = sc.nextInt();
System.out.println("enter the marks in maths : ");
int m = sc.nextInt();
System.out.println("enter the marks in english : ");
int e = sc.nextInt();
System.out.println("enter the marks in chemistry : ");
int c = sc.nextInt();
System.out.println("enter the marks in computer science : ");
int s = sc.nextInt();
System.out.println("enter the marks in physics : ");
int p = sc.nextInt();
int sum = (m+e+c+s+p);
System.out.println("the sum of marks scored is : " + sum);
int percentage = ((sum/total) * 100);
System.out.println("the percentage is : " + percentage );
}
}
public class main1 {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the name of student : ");
String n = sc.nextLine();
System.out.println("Enter the total marks to be scored : ");
int total = sc.nextInt();
System.out.println("enter the marks in maths : ");
int m = sc.nextInt();
System.out.println("enter the marks in english : ");
int e = sc.nextInt();
System.out.println("enter the marks in chemistry : ");
int c = sc.nextInt();
System.out.println("enter the marks in computer science : ");
int s = sc.nextInt();
System.out.println("enter the marks in physics : ");
int p = sc.nextInt();
int sum = (m+e+c+s+p);
System.out.println("the sum of marks scored is : " + sum);
int percentage = ((sum/total) * 100);
System.out.println("the percentage is : " + percentage );
}
}