Skip to content

raingxm/Triangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Triangle Exercises

Easiest exercise ever

Print one asterisk to the console.
Example:
*

Draw a horizontal line

Given a number n, print n asterisks on one line.
Example when n=8:
********

###Draw a vertical line Given a number n, print n lines, each with one asterisks
Example when n=3:
*
*
*

###Draw a right triangle Given a number n, print n lines, each with one more asterisk than the last (i.e. one on the first line, two on the second,etc.)
Example when n=3:
*
**
***

About

TWU task. Simple code print triangle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages