C++ A Speed Breaker
Submissions: 2723   Accuracy:

33.8%

  Difficulty: Basic   Marks: 1

Write a program to display the floating number with a given precision value.

Input:
The first line of input contains integer T denoting the number of test cases. For each test case, we take two inputs, one floating number a and an integer b for the precision of that floating number. 

Output:
For each test case we get a single line output i.e the floating number with given precision.

Constraints:
1<=T<=100;
 1<=b<=20;

Example:

Input: 
2
4.567 2
8.92 3
Output:
4.6
8.92

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Vanshika
Author: Vanshika_pec


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.