Problem A: C语言习题5.15--for循环画三角形
Time Limit: 1 Sec Memory Limit: 128 MB
Description
前几天,老师让良哥做一个画空心三角形的程序来取悦小师妹,可把良哥愁死了,C语言基础学得再扎实,算法不精也是硬伤呀!于是良哥又写好了主程序来找机前的你帮忙了^_^
#include <stdio.h>
void holl_triangle(int n); /*函数声明*/
int main()
{
int n;
scanf("%d",&n); /*输入行数n*/
holl_triangle(n); /*调用输入n行的空心三角形的函数*/
return 0;
}
主程序已给出,请完成holl_triangle函数并提交
Input
输入一个数字 例如 5
Output
*
* *
* *
* *
*********
输出如上图形
Sample Input
5
Sample Output
*
* *
* *
* *
*********
HINT
参考答案:
#include <s