write a program in java to print the given pattern:-
Attachments:
Answers
Answered by
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
English,
1 month ago
Math,
1 month ago
Computer Science,
1 month ago
Social Sciences,
3 months ago
English,
3 months ago
Physics,
9 months ago
Physics,
9 months ago
Math,
9 months ago