Create the multiplication table of a given number N and return the table as an array.
Example 1:
Input:
N = 9
Output:
9 18 27 36 45 54 63 72 81 90
Explanation:
The table of 9 is the output whose 1st 
term is 9 and the 10th term is 90.
Example 2:
Input:
N = 2
Output:
2 4 6 8 10 12 14 16 18 20
Your Task:  
You don't need to read input. Your task is to complete the function getTable() which takes an integer N as input parameter and returns a list of integers denoting the multiplication of table of N from 1 to 10. 
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
Constraints: 
1 <= N <= 10^{6}

Source: geeksforgeeks | Difficulty: EASY
Tags: Mathematics

Starter code: #User function Template for python3



class Solution:

    def getTable(self,N):

        # code here

Solutions:
class Solution:

	def getTable(self, N):
		tables = []
		for i in range(1, 11):
			tables.append(N * i)
		return tables


class Solution:

	def getTable(self, n):
		base = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
		return [i * n for i in base]


class Solution:

	def getTable(self, N):
		return [x * N for x in range(1, 11)]


class Solution:

	def getTable(self, N):
		return [str(N * 1), str(N * 2), str(N * 3), str(N * 4), str(N * 5), str(N * 6), str(N * 7), str(N * 8), str(N * 9), str(N * 10)]


class Solution:

	def getTable(self, N):
		arr = []
		for i in range(1, 10 + 1):
			arr.append(N * i)
		return arr


class Solution:

	def getTable(self, N):
		l = [x for x in range(N, N * 10 + 1) if x % N == 0]
		return l


class Solution:

	def getTable(self, n):
		a = []
		for i in range(1, 11):
			a.append(i * n)
		return a


class Solution:

	def getTable(self, N):
		arr_list = [i * N for i in range(1, 11)]
		return arr_list


class Solution:

	def getTable(self, N):
		t = []
		for i in range(1, 11):
			m = N * i
			t.append(m)
		return t


class Solution:

	def getTable(self, N):
		lst = [i for i in range(1, N * 10 + 1) if i % N == 0]
		return lst


class Solution:

	def getTable(self, N):
		y = []
		for x in range(1, 11):
			z = N * x
			y.append(z)
		return y


class Solution:

	def getTable(self, N):
		list1 = []
		for b in range(1, 11):
			list1.append(int(N * b))
		return list1


class Solution:

	def getTable(self, N):
		a = []
		for i in range(1, 11):
			ans = i * N
			a.append(ans)
		return a


class Solution:

	def getTable(self, N):
		arr = [N]
		for x in range(2, 11):
			arr.append(N * x)
		return arr


class Solution:

	def getTable(self, N):
		ans = []
		s = 10
		i = 1
		while s > 0:
			a = i * N
			ans.append(a)
			i += 1
			s -= 1
		return ans


class Solution:

	def getTable(self, N):
		lis = []
		a = 0
		for i in range(1, 11):
			a = N * i
			lis.append(a)
		return lis


class Solution:

	def getTable(self, N):
		return [N * i for i in range(1, 11)]
if __name__ == '__main__':
	t = int(input())
	for _ in range(t):
		N = int(input())
		ob = Solution()
		ans = ob.getTable(N)
		for i in ans:
			print(i, end=' ')
		print()


class Solution:

	def getTable(self, N):
		table_array = []
		for num in range(1, 11):
			table_array.append(N * num)
		return table_array


class Solution:

	def getTable(self, N):
		arr = list(range(10))
		for i in range(0, 10):
			arr[i] = N * (i + 1)
		return arr


class Solution:

	def getTable(self, N):
		l = []
		for k in range(1, 11):
			l.append(N * k)
		return l


class Solution:

	def getTable(self, N):
		list = []
		for a in range(1, 11):
			b = N * a
			list.append(b)
		return list