---
# System prepended metadata

title: 印三角形
tags: [DICE C++]

---

---
tags: DICE C++
---

印三角形
===

> [name=CHAWTeam] [time=Jun, 2020]

---

目錄：[DICE C++程式破解](https://hackmd.io/@CHAWTeam/DiceCpp)
上一篇：[SayHello](https://hackmd.io/@CHAWTeam/DiceCpp-2-1)
下一篇：[倒印三角形](https://hackmd.io/@CHAWTeam/DiceCpp-2-3)

---

**題目**
```
寫一個程式，印出以下結果：

輸出範例:
*
**
***
****
*****
******
```

**程式碼**
```cpp=
#include <stdio.h>
int main ()
{
    printf("*\n**\n***\n****\n*****\n******");
  return 0;
}
```

**輸出**
```
*
**
***
****
*****
******
```


---

[查看我們在HackMD上的所有筆記](https://hackmd.io/@CHAWTeam)
目錄：[DICE C++程式破解](https://hackmd.io/@CHAWTeam/DiceCpp)
上一篇：[SayHello](https://hackmd.io/@CHAWTeam/DiceCpp-2-1)
下一篇：[倒印三角形](https://hackmd.io/@CHAWTeam/DiceCpp-2-3)

---

{%hackmd Iiu5mOixR7yWkPHKCkabBg %}
<iframe class="LikeCoin" height="235" src="https://button.like.co/in/embed/chawteam/button?referrer=https://hackmd.io/@CHAWTeam/DiceCpp-2-2" width="100%"></iframe>

---

{%hackmd i1nMRrZcTFmTvoF897K9zg %}