作業繳交期限: 10:00am, 05/19/1999
寫一程式可從鍵盤輸入整數n, 並在螢幕上印出大小為n的直角三角形,
等腰三角形, 及菱形. 以n=3為例如下:

  *
 **
***

  *
 ***
*****

  *
 ***
*****
 ***
  *

以下是範例程式:

/**
 * Name: shape.c
 * Subject: print out different shapes such as triangle, diamond
 * Author: Your Name
 * Begin Date: xx/xx/xxxx
 * Last Update Date: xx/xx/xxxx
 * Toolkit: gcc
 */

#include <stdio.h>
/**
 * Your comment
 */
void right_triangle(int n) {
    /* fill your code here */
}

/**
 * Your comment
 */
void isosceles_triangle(int n) {
    /* fill your code here */
}

/**
 * Your comment
 */
void rhombus(int n) {
    /* fill your code here */
}

int main() {
    // fill your code
}