answersLogoWhite

0

#include
#include
void main()
{
float avg(int m1,int m2,int m3);
clrscr();
printf("\nAverage of 3 Subjects: %.2f",avg(78,85,95));
getch();
}
float avg(int m1,int m2,int m3)
{
return (m1+m2+m3)/3;
}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How to calculate graduation marks in aggregate?

How to calculate aggregate marks in graduation.taking percentage of all subject or honers .tell me


How do you calculate cumulative percentage of marks?

You calculate overall percentage of engineering marks by taking the number of engineering marks and dividing it by the percentage. When you do that, you will get your average percentage of engineering marks.


What is percentage of Honours Marks?

The percentage of Honours Marks typically refers to the proportion of marks a student earns in their Honours program relative to the total possible marks. This percentage can vary by institution, but it often reflects the student's academic performance in their major subject area. To calculate it, you would divide the total Honours marks obtained by the total marks available and then multiply by 100. For specific percentages or grading criteria, it's best to consult the guidelines of the relevant educational institution.


How do you write a Program in php to print a marksheet?

To create a PHP program that prints a marksheet, you can start by defining an associative array to store subjects and their corresponding marks. Use a loop to iterate through the array and calculate total marks and percentage. Finally, format the output using HTML for better presentation, and utilize the echo statement to display the marksheet. Here’s a simple example: <?php $marks = ["Math" => 85, "Science" => 78, "English" => 92]; $total = array_sum($marks); $percentage = ($total / (count($marks) * 100)) * 100; echo "<h1>Marksheet</h1>"; foreach ($marks as $subject => $mark) { echo "$subject: $mark<br>"; } echo "Total: $total<br>"; echo "Percentage: $percentage%"; ?>


How do you calculate percentage marks in 12th?

783


How do you calculate percentage of total marks?

It is: (marks gained)/(total possible marks) times 100 to find the percentage


How do you calculate percentage of marks obtained in 1 subject in c plus plus?

You can't, you have to come up with variables to calculate grades


How do you calculate aggregate percentage of marks obtained in class twlveth in cbse for the year 2004?

You can calculate the aggregate percentage of marks obtained in class twelfth in CBSE for the year 2004 by calculating it using a calculator. You use the formula to calculate it.


How cqan you calculate percentage of marks IGNOU?

To calculate the percentage of marks at IGNOU, first, divide the total marks obtained in a course by the maximum marks possible for that course. Then, multiply the result by 100 to convert it into a percentage. For example, if you scored 60 out of 100, the calculation would be (60/100) × 100 = 60%. You can apply this method to each course to find your overall percentage if needed.


How can i Calculate sslc mark percentage?

To calculate your SSLC (Secondary School Leaving Certificate) mark percentage, first, add up all the marks you obtained in your subjects. Then, divide the total marks by the maximum possible marks for those subjects. Finally, multiply the result by 100 to get your percentage. For example, if you scored 450 out of a possible 600 marks, your percentage would be (450/600) × 100 = 75%.


How do you calculate percent of marks is west Bengal council of higher secondary examination?

To calculate the percentage marks in the West Bengal Council of Higher Secondary Education, the continuous assessment marks, assignments and the main examination marks are required. The main examination marks carries a larger weight though.


How do you calculate best of five for ssc board 2011?

The best 5 marks are calculated. That is, the subject with the lowest marks is not used.