Computer Science, asked by madhu9241, 7 months ago

A *
A* B*
A * B * C*
A * B*C* D *
A* B* C* D* E* pattern java program​

Answers

Answered by Anonymous
1

A*B*C*D*E*F.... is the next pattern

Answered by satvikum2006
0

Answer:

Explanation:

Let’s write the java code to understand this pattern better.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

public class Edureka

{  

   public static void pyramidPattern(int n)  

   {  

       for (int i=0; i<n; i++) //outer loop for number of rows(n) { for (int j=n-i; j>1; j--) //inner loop for spaces

           {  

               System.out.print(" "); //print space

           }  

           for (int j=0; j<=i; j++ ) //inner loop for number of columns

           {  

               System.out.print("* "); //print star

           }  

 

           System.out.println(); //ending line after each row

       }  

   }  

 

   public static void main(String args[]) //driver function

   {  

       int n = 5;  

       pyramidPattern(n);  

   }  

}

pls mark as brainliest

Similar questions