Computer Science, asked by ashleyghoul, 11 months ago

How to solve this pattern program in java ?????
Answer to be marked brainliest!!!!

Attachments:

kriti7567: okk byy
kriti7567: chat you later
kriti7567: that's cool
kriti7567: byyy
kriti7567: now please don't write anything
ashleyghoul: Hii Kriti
ashleyghoul: Hey Kriti

Answers

Answered by mn121
1

 public class pattern

{

   public static void main(String args[])

   {

       char i,j;

       for(i='a';i<='e';i++)

       {

           for(j='a';j<=i;j++)

           System.out.print(j);

           for(j=(char)((int)i-1);j>='a';j--)

           System.out.print(j);

           System.out.println();

       }

   }

}


mn121: Please mark it as brainliest...
Similar questions