write a java pattern program to print:
Attachments:
Answers
Answered by
0
4. 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);
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
Math,
4 months ago
Math,
4 months ago
Math,
4 months ago
Geography,
8 months ago
Social Sciences,
8 months ago
CBSE BOARD X,
11 months ago
Geography,
11 months ago
English,
11 months ago