Blogger

Delete comment from: Java67

Anonymous said...

class PritStarTraingle{
public static void main(String args[]) {
int i,j,k=2;
for(i=0;i<4;i++)
{
for(j=0;j<=i;j++){
System.out.print(k);
}
k=k+2;
System.out.println();
}


}
}

Jan 17, 2017, 8:53:49 AM


Posted to How to Print Pyramid Pattern in Java? Program Example

Google apps
Main menu