Computer Science Java Programming?

Computer Science Help? Java Programming?

  • Use nested loops (loops within other loops) to complete the following. You can use the System.out.print / println commands or display on a dialog box.: 7. Write a program that will display the following pattern. $$$$$$$$$$ $$$$$$$$$ $$$$$$$$ $$$$$$$ $$$$$$ $$$$$ $$$$ $$$ $$ $ I'm just wondering how you would do this, any help would be greatly appreciated.. And if you don't mind, explaining your thought process and all the steps ? :)

  • Answer:

    That's a pretty introductory programming question. Off the top of my head: for (int i = 10; i > 0; i--) { for (int j = 0; j < i; j++) { System.out.print("$"); } System.out.print("\n"); }

Tim at Yahoo! Answers Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.