wap to find total marks,percentage of five subject

 class marks
{
    public static void main(String args[]) 
    {
        int maths,science,french,computer,sst;
        maths=70;
        science=50;
        french=45;
        computer=90;
        sst=85;
        double  SubjectTotal=500;
        System.out.println ("maths="+maths);
        System.out.println("science="+science);
        System.out.println("french="+french );
          System.out.println("computer="+computer);
        System.out.println("sst="+sst);
        double  TotalMarks=maths+science +french +computer +sst ;
        System.out.println("total marks="+TotalMarks );
        double  percentage=TotalMarks /SubjectTotal *100;
        
      System.out.println("percentage ="+percentage );
        
    }
}

Comments

Popular posts from this blog

alp 6 9

Alp CBAT TEST NUMBER COMPARISION YES AND NO

alp yes no set 14