码迷,mamicode.com
首页 > 其他好文 > 详细

【入门OJ】1046 : 字符图形2-星号直角

时间:2017-09-15 20:31:47      阅读:374      评论:0      收藏:0      [点我收藏+]

标签:clu   namespace   img   color   close   ima   ret   algo   image   

技术分享

前面的水题还在继续!

跟上一个题就差了一个字符QAQ

技术分享
#include<iostream>
#include<cstring>
#include<cstdio>
#include<algorithm>
#define MAXN
using namespace std;
int n;

int main(){
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        for(int j=1;j<=i;j++){
            printf("*");
        }
        printf("\n");
    }
    return 0;
}
字符图形2-星号直角

 

【入门OJ】1046 : 字符图形2-星号直角

标签:clu   namespace   img   color   close   ima   ret   algo   image   

原文地址:http://www.cnblogs.com/Parry-PY/p/7528050.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!