theCEED.com - Research your Interests!!
  • MEMBERSHIP PROFILE
  • bar
  • No member information.
  • login_button
  • sign_up_button
no_image

Fun Coding Contest

About the ceed

재밌는 코딩 대회 페이지입니다 :)

대회 일정 및 소개[클릭하세요]
Recommend : 9 I Total List : 58 I 2017-01-09
favorite
바람개비 프로그램 2017.02.08 20:17:25
Nickname : 1. unesco Recommend : 0 View : 400 btn_recommend.png declaration

Please enter reasons of report.

declaration

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include<stdio.h >
 
int main() {
    int n, i, j, k, x, y;
 
    scanf("%d" &n);
 
    for(i =0; i <n; i + +) {
        for(j =0; j <i; j + +) {
            printf(" ");
        }
        for(k =n; k >i; k - -) {
            printf("*");
        }
        for(y =n -1; y >i; y - -) {
            printf(" ");
        }
        for(x =0; x < =i; x + +) {
            printf("*");
        }
        printf("\n");
    }
    for(i =0; i <n; i + +) {
        for(j =n; j >i; j - -) {
            printf("*");
        }
        for(k =0; k <i; k + +) {
            printf(" ");
        }
        for(x =0; x < =i; x + +) {
            printf("*");
        }
        printf("\n");
    }
 
}
 
 
cs

 

list
Comments

name

write a comment
TOTAL  1 Comments
namepg30320 2017-02-12 14:20:16
우.와.