Computer Science, asked by TanviArora20, 7 months ago

Write a program for students it will take five subjects marks and find the total of all the subjects
marks also find the percentage of the student.

Answers

Answered by ArpitMishra506
2

public class Marks{

public static void main(int maths, int english, int hindi, int science, int computer)

{

int total = maths+english+hindi+science+computer;

double percentage = total/5;

System.out.println("Total : "+total) ;

System.out.println(" Percentage : "+percentage);

}

}

.

.

.

.

HOPE THIS HELPS YOU

.

.

.

.

PLEASE MARK AS BRAINLIEST AND FOLLOW ME TOO

Similar questions