theme

" जीतने वाले छोड़ते नहीं और छोड़ने वाले जीतते नही "

Saturday, March 31, 2012

program to print the series in java

A
AB
ABC
ABCD
ABCDE



import java.io.*;
class abc
{
public static void main(String args[])
{
int i,j;
for(i=65;i<=69;i++)
{
for(j=65;j<=i;j++)
{
System.out.print((char)j);
}
System.out.println();
}
}
}

No comments:

Post a Comment