class percentage
{
public static void main(String args)throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
int sc,sc1,mth,mth1,sosc,sosc1,hin
double per;
System.out.println("Enter SCIENCE total marks & full marks");
sc=Integer.parseInt(in.readLin
sc1=Integer.parseInt(in.readLi
System.out.println("Enter MATHS total marks & full marks");
mth=Integer.parseInt(in.readLi
mth1=Integer.parseInt(in.readL
System.out.println("Enter SOCIAL SCIENCE (History-Civics & Geography) total marks & full marks");
sosc=Integer.parseInt(in.readL
sosc1=Integer.parseInt(in.read
System.out.println("Enter HINDI total marks & full marks");
hin=Integer.parseInt(in.readLi
hin1=Integer.parseInt(in.readL
System.out.println("Enter COMPUTER total marks & full marks");
comp=Integer.parseInt(in.readL
comp1=Integer.parseInt(in.read
System.out.println("Enter ENGLISH total marks & full marks");
eng=Integer.parseInt(in.readLi
eng1=Integer.parseInt(in.readL
total_marks=sc+mth+sosc+hin+co
full_marks=sc1+mth1+sosc1+hin1
per=(total_marks/
System.out.println("Percentage
{
if(per>=60)
System.out.println("1st DIVISION");
else
if(per<=60&&per>=40)
System.out.println("2nd DIVISION");
else
System.out.println("3rd DIVISION");
}
}
}
NOTE:- You can run this void by inserting this code "{}" within quotes