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
Computer Science,
5 months ago
Political Science,
5 months ago
Hindi,
5 months ago
Math,
11 months ago
Hindi,
1 year ago
Math,
1 year ago