Posted by : Unknown Thursday 11 June 2015

class CapitalSmall
{
public static void main (String[] args)
{
int xx = 65;
for(int i=1; i<= 10;i++)
{
for(int j=1; j <= i ; j++)
{
char x = (char)xx;
xx = xx+1;
System.out.print(x);
}
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 -