{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"\u003cp\u003e\nLamiya were reading an article about factorial. A highlighted part of that article given below.\u003cbr\u003e\n\u003ci\u003eIn mathematics, the product of all positive integers less than or equal to a given positive integer and denoted by that integer and an exclamation point. Thus, factorial seven is written 7!, meaning 1 × 2 × 3 × 4 × 5 × 6 × 7. \u003c/i\u003e\u003cbr\u003e\nHelp Lamiya to write a program to find the factorial value of any number.\n\u003c/p\u003e\n"}},{"title":"Input Format","value":{"format":"MD","content":"\u003cp\u003e \nThe first line contains an integer \u003cb\u003eT\u003c/b\u003e, the total number of testcases. Then \u003cb\u003eT\u003c/b\u003e lines follow, each line contains an integer \u003cb\u003eN\u003c/b\u003e. \n\u003c/p\u003e\n"}},{"title":"Output Format","value":{"format":"MD","content":"\u003cp\u003eFor each test case, display the factorial of the given number \u003cb\u003eN\u003c/b\u003e in a new line.\u003c/p\u003e\n"}},{"title":"Constraints","value":{"format":"MD","content":"\u003cli\u003e1 \u003cb\u003e≤\u003c/b\u003e \u003cb\u003eT\u003c/b\u003e \u003cb\u003e≤\u003c/b\u003e 1000\u003c/li\u003e\n\u003cli\u003e0 \u003cb\u003e≤\u003c/b\u003e \u003cb\u003eN\u003c/b\u003e \u003cb\u003e≤\u003c/b\u003e 20\u003c/li\u003e\n"}},{"title":"Sample 1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3 \n3 \n4\n5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e6\n24\n120\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}