Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- amba
- verilog
- 백준
- HDLBits
- 정처기
- 정보처리기사
- Beakjoon
- Backjoon
- hdl
- AMBA BUS
- vitis
- UNIX
- Vivado
- Bus
- linux
- 리눅스
- Xilinx
- java
- 코딩테스트
- 실기
- C++
- FPGA
- chip2chip
- axi
- verilog HDL
- Zynq
- baekjoon
- SQL
- 자격증
- boj
Archives
- Today
- Total
Hueestory
[2438] 별 찍기 - 1 (C++) 본문
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n; cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++)
cout << "*";
cout << endl;
}
return 0;
}
1. 이중 for문을 사용해 별 출력

'PS > BOJ' 카테고리의 다른 글
| [2475] 검증수 (C++) (0) | 2024.04.25 |
|---|---|
| [2439] 별 찍기 - 2 (C++) (0) | 2024.04.25 |
| [1330] 두 수 비교하기 (C++) (0) | 2024.04.25 |
| [1152] 단어의 개수 (C++) (0) | 2024.04.25 |
| [1008] A/B (C++) (0) | 2024.04.25 |
Comments