Computer Science, asked by rashmikumarigpta, 8 months ago

write an algorithm to input marks of 5 subject and calculate their averarge​

Answers

Answered by rishikadeshpande06
6

Answer:

Logic to find total, average and percentage

  1. Input marks of five subjects. ...
  2. Calculate sum of all subjects and store in total = eng + phy + chem + math + comp .
  3. Divide sum of all subjects by total number of subject to find average i.e. average = total / 5 .
  4. Calculate percentage using percentage = (total / 500) * 100 .

Explanation:

example:

Input

Enter marks of five subjects: 95 76 85 90 89

Output

Total = 435

Average = 87

Percentage = 87.00

Similar questions