C语言实验——图形输出(字符常量练习)

来源:互联网 发布:网络骚扰电话怎么举报 编辑:程序博客网 时间:2024/05/19 23:54

C语言实验——图形输出(字符常量练习)

Time Limit: 1000MS Memory Limit: 65536KB
SubmitStatistic Discuss

Problem Description

用基本输出语句打印以下图形:
#
##
###
####
#####
######

Input

本题目没有输入数据

Output

输出图形由6行组成,第1行有1个#号,第i行有连续的i个#号:
#
##
###
####
#####
######

Example Input

Example Output

#####################

Hint

Author


#include <stdio.h>#include <stdlib.h>int main(){    printf("#\n");    printf("##\n");    printf("###\n");    printf("####\n");    printf("#####\n");    printf("######\n");    return 0;}/***************************************************User name: jk160115赵鑫源Result: AcceptedTake time: 0msTake Memory: 148KBSubmit time: 2017-07-20 11:15:56****************************************************/


阅读全文
0 0
原创粉丝点击