write a bluej program to generate the following patten
54321
5432
543
54
5
Answers
Answered by
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.
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
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!!
Similar questions