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
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
Computer Science,
3 months ago
English,
3 months ago
Math,
3 months ago
History,
7 months ago
Math,
7 months ago
Political Science,
11 months ago
Chemistry,
11 months ago
Geography,
11 months ago