how to print the pattern in java:
A B C D E
A B C D A
A B C A B
A B A B C
A A B C D
Answers
Answered by
0
Answer:
==>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);
Explanation:
Similar questions