CPP 05 PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Price Precision

The price P of an item is passed as the input. The program must print the value of P, formatting it up
to 2 places after decimal point. The output of the program must be "The price is P"

Example Input/Output 1:

Input:

24.5912

Output:

The price is 24.59

Example Input/Output 2:

Input:

34.1754

Output:

The price is 34.18

TestCase ID: 4665

Input:
34.1754
Expected Output:
The price is 34.18

B.BHUVANESWARAN | AP (SG) | CSE | Rajalakshmi Engineering College 5

You might also like