PROGRAM-4
Wap to print the following pattern:
AB
ABC
ABCD
ABCDE
class nestedloopp
public static void main()
int c=10,h;
char l,t;
for(l='A' ;l <='E';i ++)
for(h=1;h<=c;h++)
[Link](" ");
c--;
for(t='A';t<=i;t++)
{
[Link](t);
[Link]( );
OUTPUT
VARIABLE DESCRIPTION TABLE-
NAME TYPE PURPOSE
h int To use as a control
variable in for loop to
print the following
pattern.
i int To use as a control
variable in for loop to
print the following
pattern.
t int To use as a control
variable in for loop to
print the following
pattern.