Find sum of all the numbers that are multiples of 10 and are less than or equal to a given number "N". (quotes for clarity and be careful of integer overflow)
-----Input-----
Input will start with an integer T the count of test cases, each case will have an integer N.
-----Output-----
Output each values, on a newline.
-----Constraints-----
- 1 ≤ T ≤ 10
- 1 ≤ N ≤1000000000
-----Example-----
Input:
1
10
Output:
10
-----Explanation-----
Example case 1. Only integer that is multiple 10 that is less than or equal to 10 is 10
t=int(input())
while t:
 n=int(input())
 t-=1
 r=n/10
 r=10*(r*(r+1))/2
 print(r)
t=int(input())
while t:
 n=int(input())
 t-=1
 r=n/10
 r=10*(r*(r+1))/2
 print(r)