Answer to Question #265007 in Java | JSP | JSF for Penda

Question #265007

Write a java program that would display the 8 shape using the ‘*’ characte


1
Expert's answer
2021-11-12T17:34:19-0500


SOLUTION TO THE ABOVE QUESTION


SOLUTION CODE


package com.company;

public class Main {

    public static void main(String[] args) {
   // write your code here

        System.out.println(" * * *");
        System.out.println("*     *");
        System.out.println("*     *");
        System.out.println(" *   *  ");
        System.out.println("   *  ");
        System.out.println(" *   *  ");
        System.out.println("*     *");
        System.out.println("*     *");
        System.out.println(" * * *");

    }
}


SAMPLE PROGRAM OUTPUT



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS