write a program in Java to accept 5 subject mark and print average and grade
Answers
Answered by
2
Answer:
import java. util. Scanner;
public class MarksCalculator.
{ public static void main(String args[])
{ int markArray[] = new int[5];
int i; float sum=0;
float average, percentage; Scanner scan = new Scanner(System. in);
System. out. print("Enter marks for 5 Subjects : ");
for(i=0; i<5; i++){ markArray[i] = scan.
Similar questions
Biology,
5 months ago
Computer Science,
5 months ago
Geography,
11 months ago
English,
11 months ago
Music,
1 year ago