compscibuntu team mailing list archive
-
compscibuntu team
-
Mailing list archive
-
Message #00005
[Question #45119]: codelab questions
Question #45119 on Computer Science Ubuntu changed:
https://answers.launchpad.net/compscibuntu/+question/45119
Description changed to:
Assume that the int variables i , j and n have been declared, and n has been initialized. Write code that causes a "triangle" of asterisks to be output to the screen, i.e., n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consisting of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be (scroll down if necessary):
*
**
***
Instructor's notes: This problem requires for loops.
--
You received this question notification because you are a member of
Computer Science Ubuntu, which is an answer contact for Computer Science
Ubuntu.