{"id":"e84707a4-d2d5-4bee-a427-168c6a5a0b36","name":"Print Z","description":"1. You are required to print a 'z' of size 5 using '*'.","inputFormat":"There is no input","outputFormat":"<img src=\"http://pepcoding.com/resources/ojquestionresource/images/print-z-in-java.JPG\" />","constraints":"No Constraints","sampleCode":{"cpp":{"code":"#include<iostream>\r\nusing namespace std;\r\nint main(int argc, char** agrc){\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 // Write your code here\r\n\r\n }\r\n}"},"python":{"code":"def main():\r\n \r\n\r\nif __name__ == \"__main__\":\r\n main()"}},"points":10,"difficulty":"easy","sampleInput":"No Input","sampleOutput":"*****\r\n *\r\n *\r\n *\r\n*****","questionVideo":"https://www.youtube.com/embed/_Mj-Pe86Zt8","hints":[],"associated":[{"id":"810ed4e4-d466-4538-a845-bb92dff186cd","name":"Print Z","slug":"print-z","type":3}],"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":"72157774-7fd0-4b8e-88dc-037800acd626","name":"Getting Started","slug":"getting-started-9996","type":0},{"id":"745eb7bd-65cb-4cca-843b-f8558d0e0a7d","name":"Print Z","slug":"print-z","type":1}],"next":{"id":"810ed4e4-d466-4538-a845-bb92dff186cd","name":"Print Z","type":3,"slug":"print-z"},"prev":{"id":"d225efeb-3bc8-4375-8249-8da2f886d1a6","name":"How To Print Output In Programming Language","type":0,"slug":"how-to-print-output-in-programming-language"}}}

Print Z

1. You are required to print a 'z' of size 5 using '*'.

{"id":"e84707a4-d2d5-4bee-a427-168c6a5a0b36","name":"Print Z","description":"1. You are required to print a 'z' of size 5 using '*'.","inputFormat":"There is no input","outputFormat":"<img src=\"http://pepcoding.com/resources/ojquestionresource/images/print-z-in-java.JPG\" />","constraints":"No Constraints","sampleCode":{"cpp":{"code":"#include<iostream>\r\nusing namespace std;\r\nint main(int argc, char** agrc){\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 // Write your code here\r\n\r\n }\r\n}"},"python":{"code":"def main():\r\n \r\n\r\nif __name__ == \"__main__\":\r\n main()"}},"points":10,"difficulty":"easy","sampleInput":"No Input","sampleOutput":"*****\r\n *\r\n *\r\n *\r\n*****","questionVideo":"https://www.youtube.com/embed/_Mj-Pe86Zt8","hints":[],"associated":[{"id":"810ed4e4-d466-4538-a845-bb92dff186cd","name":"Print Z","slug":"print-z","type":3}],"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":"72157774-7fd0-4b8e-88dc-037800acd626","name":"Getting Started","slug":"getting-started-9996","type":0},{"id":"745eb7bd-65cb-4cca-843b-f8558d0e0a7d","name":"Print Z","slug":"print-z","type":1}],"next":{"id":"810ed4e4-d466-4538-a845-bb92dff186cd","name":"Print Z","type":3,"slug":"print-z"},"prev":{"id":"d225efeb-3bc8-4375-8249-8da2f886d1a6","name":"How To Print Output In Programming Language","type":0,"slug":"how-to-print-output-in-programming-language"}}}
plane

Editor


Loading...

Print Z

easy

1. You are required to print a 'z' of size 5 using '*'.

Constraints

No Constraints

Format

Input

There is no input

Output

Example

Sample Input

No Input

Sample Output

***** * * * *****

Question Video

Discussions

Show Discussion

Related Resources

related resources

Turning Off Zen Mode