Java program to display the following pattern. - BSC IT PRACTICALS

Monday, January 15, 2018

Java program to display the following pattern.


CODE:

class prac1B
{ public static void main(String args[])
{
int i,j;
for(i=5;i>=1;i--)
{
for(j=i;j>=1;j--)
{
System.out.print("*");
}
System.out.println(" ");
}
}

}

No comments:

Post a Comment