Current location - Training Enrollment Network - Books and materials - Calculation of function points of book management system
Calculation of function points of book management system
The process is as follows:

# contains "stdio.h"

int? Mainly? (invalid)

{

int? Party A, Party B and Party C; //Define three variables, A, B and C, and store the scores of the three courses respectively.

Double? Sum, average; //Define sum and ave to store the sum and average of three levels respectively.

Printf ("Please enter the scores of three courses A = B = C =");

Scanf("%d%d%d ",& i, & ampb & amp;; c);

sum = a+b+c; //Find the sum of the three courses

ave =(a+b+c)/3.0; //Find the average of the three courses.

Printf ("Output the total and average scores of the three courses sum=%lf\nave=%lf\n", sum, ave); ? //Output total score and average method.

Return? 0;

}

Assume that the scores of the three courses are 75, 80 and 82 respectively;

The results are as follows: