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
n
$ each. 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