solve this pattern in Java(blue j)
Attachments:
Answers
Answered by
3
//to display the pattern
public class Pattern
{
public static void main(String args[])
{
int a,b;
System.out.println("The pattern:");
for(a=97;a<=101;a++)
{
for(b=97;b<=a;b++)
System.out.println((char)b);
System.out.println( );
}
}
}
HOPE IT HELPS U!!
THANK U!!
Similar questions