1.

Write a program in java to print the given pattern:- ​

Answer»

EXPLANATION:

Diamond Shape Pattern

import java.util.SCANNER;

public class DiamondPattern.

{

public static void main(String args[])

{

int row, i, J, space = 1;

System.out.print("Enter the number of rows you want to print: ");

Scanner SC = new Scanner(System.in);



Discussion

No Comment Found