Average 1 OJ: URI Problem no: 1005

Average 1

OJ: URI

Problem no: 1005

  

This is a simple problem that reads two integer values from the user and Print the variable MEDIA (English: average) with all the capital letters, with 5 digits after the decimal point and with a blank space before and after the equal signal. Output should be like: " MEDIA = ## ".

MEDIA = (A * 3.5 + B * 7.5) / (3.5 + 7.5);

Hints: If you are the user of JAVA programming language, you can use decimal format or printf (anything what you feel comfort) for printing your output 5  digits after the decimal point.

(If you have any more question or confusion, just comment it below.)


 
author : Amirul Islam.
 

Comments