Question: I'm a learning JAVA on eclipse IDE. Just learned If else statement, loop, and nested loop in JAVA. Using those three write codes for... Problem

I'm a learning JAVA on eclipse IDE. Just learned If else statement, loop, and nested loop in JAVA. Using those three write codes for...

Problem 1: Print an equilateral triangle of *s with the given width. The right angle should be on the upper right. Given a width of 4: **** *** ** *

Problem 2: Print a 12x12 multiplication table, properly spaced: 0 1 2 3 4 .. 11 12 1 1 2 3 4 11 12 2 2 4 6 8 22 24 3 3 6 9 12 33 36 .. .. .. 11 11 22 33 44 .. 121 132 12 12 24 36 48 .. 132 144 That is, each entry in the table takes up 3 characters and is right-aligned, with a space between entries on the same line. Hint: use printf

Write code between curly brackets after pulic static void problem#. For example: public static void problem2() { //write codes here }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!