import java.util.Scanner;
public class ClassName {
public static void main(String[] args) {
int marks1=69;
int marks2=76;
int marks3=85;
int marks4=50;
int marks5=78;
double sum = marks1+marks2+marks3+marks4+marks5;
double total = 500;
double percentage = sum/total*100;
System.out.println("Percentage of marks of 5 subjects "+ percentage);
}
}
Percentage of marks of 5 subjects 71.6
Copyright © 2023 - Proleed Academy | All Rights Reserved.