URI Online Judge | 1006
See the ANSWER here...
Average 2
Read three values (variables A, B and C), which are the three student's grades. Then, calculate the average, considering that grade A has weight 2, grade B has weight 3 and the grade C has weight 5. Consider that each grade can go from 0 to 10.0, always with one decimal place.
Input
The input file contains 3 values of floating points with one digit after the decimal point.
Output
Print MEDIA(average in Portuguese) according to the following example, with a blank space before and after the equal signal.
| Input Samples | Output Samples |
| 5.0 6.0 7.0 | MEDIA = 6.3 |
| 5.0 10.0 10.0 | MEDIA = 9.0 |
| 10.0 10.0 5.0 | MEDIA = 7.5 |
[WAIT]
First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one think, just believe in yourself.....YOU CAN.....YOU KNOW....
See the ANSWER here...
No comments:
Post a Comment