URI Online Judge | 1038 Solution |Snack

Snack

Adapted by Neilor Tonin, URI  Brazil | Timelimit: 1

Using the following table, write a program that reads a code and the amount of an item. After, print the value to pay. This is a very simple program with the only intention of practice of selection commands.

URI Online Judge | 1038 Solution |Snack 1

Input

The input file contains two integer numbers and Yis the product code and is the quantity of this item according to the above table.

Output

The output must be a message “Total: R$ ” followed by the total value to be paid, with 2 digits after the decimal point.

Input SampleOutput Sample
3 2Total: R$ 10.00
4 3Total: R$ 6.00
2 3Total: R$ 13.50

Source Code

Posted in 1001 - 1050, URI Online Judge SolutionTags: