$p = <STDIN>;
$t = $p * 0.07;
print $t,$p+$t;
Write a program that asks for and reads the price of a book (it may have a decimal part), multiplies it by 7% sales tax and displays both the sales tax and final price of the book on the screen.
1 answer