#P34. 【例8.2】成绩
【例8.2】成绩
Description
Niu Niu recently took an introductory C++ course. The total score for this course is calculated as follows:
Total Score = Homework Score × % + Quiz Score × % + Final Exam Score × %
Niu Niu wants to know what his final score for this course will be.
Input Format
A single line containing three non-negative integers , , , representing Niu Niu's homework score, quiz score, and final exam score. The scores are separated by a space, and each score is out of points. and , , are multiples of .
Output Format
A single line containing an integer, representing Niu Niu's total score for the course, also out of points.
Sample
100 100 8090
Related
In following homework: