mirror of
https://github.com/m1ngsama/code4sk.git
synced 2025-12-25 02:56:17 +00:00
35 lines
No EOL
500 B
C++
35 lines
No EOL
500 B
C++
/* 7-4 输出三角形
|
|
分数 20
|
|
作者 张高燕
|
|
单位 浙大城市学院
|
|
本题要求编写程序,输出指定的由“*”组成的三角图案。
|
|
|
|
输入格式:
|
|
本题无输入
|
|
|
|
输出格式:
|
|
按照下列格式输出由“*”组成的三角图案。
|
|
|
|
****
|
|
***
|
|
**
|
|
*
|
|
代码长度限制
|
|
16 KB
|
|
时间限制
|
|
400 ms
|
|
内存限制
|
|
64 MB */
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void)
|
|
{
|
|
printf("****\n");
|
|
printf("***\n");
|
|
printf("**\n");
|
|
printf("*\n");
|
|
|
|
return 0;
|
|
} |