write a java program to accept. Marks of a student in phy chemistry and biology using function argument . Display
the total marks and average marks.
Answers
Answered by
1
total marks will be 94/100
average 44%
Answered by
2
//To display the total marks and average marks
import java.util.*;
public class Marks
{
public static void main (String args[]);
{
int p , c , b , tot;
float avg;
tot = (p+c+b);
avg = tot/3.0;
System.out.println("The total marks obtained=" +tot);
System.out.println("The average marks=" +avg);
}
}
Similar questions