How to solve this pattern program in java ?????
Answer to be marked brainliest!!!!
Attachments:
kriti7567:
okk byy
Answers
Answered by
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();
}
}
}
Similar questions