Post a New Question

programming

posted by .

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.

  • programming -

    $p = <STDIN>;
    $t = $p * 0.07;
    print $t,$p+$t;

Answer This Question

First Name
School Subject
Your Answer

Related Questions

More Related Questions

Post a New Question