Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_형성평가A_code149 (C)
#include int main() { int n, k=1; scanf("%d", &n); for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { printf("%d ", k); k = (k + 2) % 10; } printf("\n"); } return 0; }
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_형성평가A_code149 (C)
#include int main() { int n, k=1; scanf("%d", &n); for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { printf("%d ", k); k = (k + 2) % 10; } printf("\n"); } return 0; }
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_형성평가9_code148 (C)
#include int main() { int n; scanf("%d", &n); for (int i = 0; i < n-1; i++) { for (int j = 0; j = 0; i--) { for (int j = 0; j < n-i; j++) { printf(" "); } for (int j = 0; j < i; j++) { printf("# ", j+1); } printf("\n"); } return 0; }
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_형성평가8_code147 (C)
#include int main() { int n, b=0; scanf("%d", &n); for (int i = n; i >= 0; i--) { for (int j = 0; j < n-i; j++) { printf(" "); } for (int j = 0; j < i; j++) { printf("%d ", b+j+1); if (j == i-1) b += j + 1; } printf("\n"); } return 0; }
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_형성평가7_code146 (C)
#include int main() { int n, a=65, b=0; scanf("%d", &n); for (int i = 1; i
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_형성평가5_code144 (C)
#include int main() { int n; scanf("%d", &n); for (int i = 1; i
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_형성평가4_code143 (C)
C언어 #include int main() { int n; scanf("%d", &n); for (int i = n; i >= 1; i--) { for (int j = 0; j < n - i; j++) { printf(" "); } for (int j = 0; j < i; j++) { printf("*"); } for (int j = 0; j < i - 1; j++) { printf("*"); } printf("\n"); } for (int i = 2; i
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_자가진단7_code554 (C)
#include int main() { int n, a=65, b=0; scanf("%d", &n); for (int i = 1; i
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_자가진단6_code553 (C)
#include int main() { int n, a=65; scanf("%d", &n); for (int i = n; i >= 1; i--) { for (int j = 0; j < i; j++) { printf("%c", a+j); if (j == i - 1) a += j+1; } printf("\n"); } return 0; }
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_자가진단5_code552 (C)
#include int main() { int n; scanf("%d", &n); for (int i = n; i >= 1; i--) { for (int j = 0; j < n - i; j++) { printf(" "); } for (int j = 0; j < i; j++) { printf("*"); } for (int j = 0; j < i-1; j++) { printf("*"); } printf("\n"); } return 0; }
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_자가진단4_code551 (C)
C언어 #include int main() { int n; scanf("%d", &n); for (int i = n; i >= 1; i--) { for (int j = 0; j < n - i; j++) { printf(" "); } for (int j = 0; j < i; j++) { printf("*"); } printf("\n"); } return 0; } Python n = int(input()) for i in range(n, 0, -1): print(" "*(n-i), end="") print("*"*i)
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_자가진단3_code550 (C)
C언어 #include int main() { int n; scanf("%d", &n); for (int i = n; i > 0; i--) { for (int j = 0; j < i; j++) { printf("*"); } printf("\n"); } for (int i = 1; i
Coding_Algorithm/정올 문제풀이
[정올] Language Coder_반복제어문3_자가진단2_code634 (C)
#include int main() { int n; scanf("%d", &n); for (int i = 1; i