Homework 5
Write a program that given the even sidelength of a triangle, prints that triangle out of asterisks. Your program should work for triangles of all sidelengths between 2 and 80. For example, if your program is given a length of 8, it should print
**
****
******
********
Remember:
It is due We 2/17, late homeworks will be penalized !
You will be graded on:
- correctness: (6 points)
- correct algorithm and results (incl. thorough testing)
- robustness (e.g. no division by zero)
- following the specification (e.g. output specification)
- style: (4 points)
- use of comments
- indentation (use TAB key in emacs)
- meaningful variable and function naming
- simplicity, modularity etc.