Assume that the int variables i and j have been declared , and that n has been declared and initialized .

LANGUAGE: JAVA

CHALLENGE:

Assume that the int variables i and j have been declared , and that n has been declared and initialized .

Using for loops (you may need more than one), write code that will cause a triangle of asterisks of size n to be output to the screen.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,