Printing a magic letter

Report a typo

Write a program that prints the following magic letter using * and whitespaces.

Use the provided code template.

Sample Output

*******
     **
     **
**   **
**   **
 ******
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic