C语言实验——图形输出(字符常量练习)
Time Limit: 1000MS
Memory Limit: 65536KB
Problem Description
用基本输出语句打印以下图形:
#
##
###
####
#####
######
#
##
###
####
#####
######
Input
本题目没有输入数据
Output
输出图形由6行组成,第1行有1个#号,第i行有连续的i个#号:
#
##
###
####
#####
######
#
##
###
####
#####
######
Example Input
Example Output
# ## ### #### ##### ######
Hint
Author
参考代码
#include <stdio.h>
int main()
{
printf("#\n##\n###\n####\n#####\n######");
return 0;
}
int main()
{
printf("#\n##\n###\n####\n#####\n######");
return 0;
}