Last active
January 18, 2018 10:04
-
-
Save keehyun2/382522ec7c1978db4c4216ae68f990e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS // scanf 보안 경고로 인한 컴파일 에러 방지 | |
#include <stdio.h> | |
int main() | |
{ | |
int N = 0; | |
scanf("%d", &N); // 1이상 100이하의 값을 입력 | |
for (int i = 0; i < N; i++) | |
{ | |
for (int j = 0; j < N; j++) | |
{ | |
if (i > j) | |
{ | |
printf(" "); | |
} | |
else | |
{ | |
printf("*"); | |
} | |
} | |
printf("\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment