Write a PHP Program to find the average of 5 Subject Marks.
Answers
Answered by
1
Explanation:
Logic to find total, average and percentage
Input marks of five subjects. ...
Calculate sum of all subjects and store in total = eng + phy + chem + math + comp .
Divide sum of all subjects by total number of subject to find average i.e. average = total / 5 .
Calculate percentage using percentage = (total / 500) * 100 .
Similar questions
Computer Science,
4 months ago
Hindi,
4 months ago
Science,
4 months ago
Computer Science,
8 months ago
Hindi,
8 months ago
Math,
11 months ago
English,
11 months ago