Computer Science, asked by abdulparveezya, 1 year ago

write a bluej program to generate the following patten
54321
5432
543
54
5

Answers

Answered by chetan2222
0
HEY MATE!
HER IS YOUR ANSWER-
1)RIGHT CLICK AT PROGRAM FILE.
2)LEFT CLICK ON THE VOID MAIN.
3)LEFT CLICK ON "OK" AMD THEN RUN THE PROGRAM YOU WANT.

abdulparveezya: i asked for a program not to know how to run it
Answered by sakshi10fenrana
0

//to display the pattern

public class Pattern

{

public static void main(String args[])

{

int i,j;

System.out.println("The Pattern:");

for(i=1;1<=5;i=i+2)

{

for(j=5;j>=i;j-2)

System.out.print(j+" ");

System.out.println();

}

}

}

*Note :

U SHOULD ALWAYS WRITE A PATTERN PROGRAM USING TWO LOOPS.

Hope it helps u out!!



satishatbcdp9vp8p: awesome
sakshi10fenrana: thank u so much
satishatbcdp9vp8p: mention not sis
sakshi10fenrana: yo
Similar questions