8. Use C or Java to write a subroutine of argument n that prints a diamond shape, for example, n=5:
(10%)