answersLogoWhite

0


Best Answer

// num = the highest number to start with

final int num = 5;

// Go through each value from num through 1.

for (int n = num; n > 0; --n) {

// For each value, print each value from num all the way down to the value.

for (int m = num; m >= n; --m) {

System.out.print(m);

System.out.print(' ');

}

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a java program to show following pattern 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can we add website link when we write java program?

yes ,i can add the website link in java program when we write.


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


What is javadoc?

write a java program to display "Welcome Java" and list its execution steps.


How write new line program in java?

\n


How do you write a java program for finding multiligual languages?

You can use Java's built-in functions to write a code that will find multilingual languages.


How java is 100 percent Internet based?

It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.


Write a java code to draw a circle inside in an ellipse?

write a program draw circle and ellipse by using oval methods in java


How do you write a java program to find the ad joint of a matrix?

bgfygfrhjyuyhh


How do you write algorithms of java programs?

Write a program that graphically demonstrates the shortest path algorithm


Is it possible to write a program in Java and partly in C?

Yes, that's what JNI is good for.


How do you write a java program to find the square root of a number?

You can use the Math.sqrt() method.


How To write a java program to create three tier applications using servlets?

barsanabegam