Uploaded by debtithipaul

Write a program to print the series of

advertisement
Write a program to print the series of
1
23
456
78910
11 12 13 14 15
classgp
{
public static void main(String[] args)
{
int k=1;
for(int r=1;r<=5;r++)
{
for(int c=1;c<=r;c++)
{
System.out.print(k);
k++;
}
System.out.println();
}
}
}
Copyright © BCA Notes All Rights Reserved.
Download