Q
백준 2439

C code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| #include <stdio.h>
int main(void) { int n;
scanf("%d", &n);
for(int i = 1; i <= n; i++) { for(int j = n-1; j >= i; j--) printf(" ");
for(int j = 0; j < i ; j++) printf("*"); printf("\n"); } return 0; }
|
Author:
Slay
Permalink:
http://sean-baek.github.io/2023/04/23/baekjoon-2439/
License:
Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?