{"id":"b91b4ded-9a95-4913-b428-6ef804c01811","name":"Pattern 1","description":"1. You are given a number n.\r\n2. You've to create a pattern of * and separated by tab as shown in output format.","inputFormat":"A number n","outputFormat":"<img src=\"http://pepcoding.com/resources/ojquestionresource/images/pat11.JPG\" alt=\"pat11\">","constraints":"1 &lt;= n &lt;= 100","sampleCode":{"cpp":{"code":"#include <iostream>\r\nusing namespace std;\r\n\r\nint main(int argc, char **argv){\r\n int n;\r\n cin >> n;\r\n \r\n //write your code here\r\n \r\n}"},"java":{"code":"import java.util.*;\r\n\r\npublic class Main {\r\n\r\n public static void main(String[] args) {\r\n Scanner scn = new Scanner(System.in);\r\n\r\n // write ur code here\r\n\r\n }\r\n}"},"python":{"code":"n = int(input())\r\n#write your code here"}},"points":10,"difficulty":"easy","sampleInput":"2","sampleOutput":"*\t\r\n*\t*","questionVideo":"https://www.youtube.com/embed/3OUOKD-wj0Q","hints":[],"associated":[],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"ca241a91-e685-4c63-9d83-892cf12c5576","name":"Patterns","slug":"patterns-9997","type":0},{"id":"575b991c-bb20-49f0-ae63-f4bff9dc5c54","name":"Pattern 1","slug":"pattern-1","type":1}],"next":{"id":"10431405-c060-4328-abb7-1c0a6724fede","name":"PATTERN 1","type":3,"slug":"pattern-1"},"prev":null}}

Pattern 1

1. You are given a number n. 2. You've to create a pattern of * and separated by tab as shown in output format.

{"id":"b91b4ded-9a95-4913-b428-6ef804c01811","name":"Pattern 1","description":"1. You are given a number n.\r\n2. You've to create a pattern of * and separated by tab as shown in output format.","inputFormat":"A number n","outputFormat":"<img src=\"http://pepcoding.com/resources/ojquestionresource/images/pat11.JPG\" alt=\"pat11\">","constraints":"1 &lt;= n &lt;= 100","sampleCode":{"cpp":{"code":"#include <iostream>\r\nusing namespace std;\r\n\r\nint main(int argc, char **argv){\r\n int n;\r\n cin >> n;\r\n \r\n //write your code here\r\n \r\n}"},"java":{"code":"import java.util.*;\r\n\r\npublic class Main {\r\n\r\n public static void main(String[] args) {\r\n Scanner scn = new Scanner(System.in);\r\n\r\n // write ur code here\r\n\r\n }\r\n}"},"python":{"code":"n = int(input())\r\n#write your code here"}},"points":10,"difficulty":"easy","sampleInput":"2","sampleOutput":"*\t\r\n*\t*","questionVideo":"https://www.youtube.com/embed/3OUOKD-wj0Q","hints":[],"associated":[],"solutionSeen":false,"tags":[],"meta":{"path":[{"id":0,"name":"home"},{"id":"0c54b191-7b99-4f2c-acb3-e7f2ec748b2a","name":"Data Structures and Algorithms","slug":"data-structures-and-algorithms","type":0},{"id":"ca241a91-e685-4c63-9d83-892cf12c5576","name":"Patterns","slug":"patterns-9997","type":0},{"id":"575b991c-bb20-49f0-ae63-f4bff9dc5c54","name":"Pattern 1","slug":"pattern-1","type":1}],"next":{"id":"10431405-c060-4328-abb7-1c0a6724fede","name":"PATTERN 1","type":3,"slug":"pattern-1"},"prev":null}}
plane

Editor


Loading...

Pattern 1

easy

1. You are given a number n. 2. You've to create a pattern of * and separated by tab as shown in output format.

Constraints

1 <= n <= 100

Format

Input

A number n

Output

pat11

Example

Sample Input

2

Sample Output

* * *

Question Video

Discussions

Show Discussion

Related Resources

related resources

Turning Off Zen Mode