| Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. Question by Erisa Terolli.
 
 
 Calculating Sales    
An online retailer sells five different products whose retail prices are shown in the following table:
 
 
| Product Number | Retail Price | 
|---|
 | 1 | 2.89 |  | 2 | 4.50 |  | 3 | 9.98 |  | 4 | 4.49 |  | 5 | 6.87 |  ProblemWrite a program that calculates and displays the total retail values of all products sold.
 Input specification  You will be given lines of numbers containing two integers. First one represent the Product number and the second one the quantity sold. The end of input is marked with -1.
Dont take into consideration products with negative quantity.
 Output specification  Show the total retail values as a floating point number which have 2 digit precision after the floating point.
 
| Sample Input I 
 
1 12 1
 3 1
 4 1
 5 1
 -1
 |  
| Sample Output I 
 
28.73
 |  Для отправки решений необходимо выполнить вход.
 
 
 |