Module: (Java) Variables. Output formats


Problem

4 /7


Cost of purchases

Problem

Rabbit Clover wants to write a program that would help him calculate the cost of purchases in the shop. The rabbit wants to buy b carrots for neach. Help him make a program.

Compose the program according to the following algorithm:
1. Set the integer variables b and n values from the keyboard
2. Write an output statement that outputs how many dollars the rabbit will have to pay.

Example
Input Output
1 5 2 10