0% found this document useful (0 votes)
3 views3 pages

Java Pattern Printing Program

Uploaded by

rakshitaashahi21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Java Pattern Printing Program

Uploaded by

rakshitaashahi21
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like