Nearest multiple of 10
Submissions: 12444   Accuracy:

37.02%

  Difficulty: Easy   Marks: 2

Given a positive number N. The task is to round N to nearest multiple of 10. Number can be so big and can contains 1000 of digits.

Input:
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains a positive number N.

Output:
For each test case, print the nearest multiple of 10 in new line.

Constraints:
1 <= T <= 100
1 <= |Number length| <= 1000

Example:
Input:
2
15
29

Output:
10
30

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

Author: arun03


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.