/* Pyramid Program */
class alpha
{
public static void main(String arg[])
{
char al[] = {'s','e','n','t','h','i','l'};
for(int i=0;i<=6;i++)
{
for(int j=0;j<=i;j++)
{
System.out.print(al[j]);
}
System.out.println();
}
}
}Java
Java - String Pyramid Program

Written by
View ProfileSenthilvelan Sambamoorthy
Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.
