Posted by : Unknown Thursday, 11 June 2015

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

Output:

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

Blog Archive

- Copyright © Learning Java Program - Powered by Blogger -