Computer Science, asked by anuradhamaji8926, 3 months ago

write a program in java to print the given pattern:-

Attachments:

Answers

Answered by daisymiss
1

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);

Similar questions