Question: Below is the code sample I tried coding it out in Angular but it's not something that I want.

```
                    <table>
                        <th >No.</th>
                        <th >Merchant </th>
                        <th >Last Order Grand Total </th>
                        <th >Last Order Date </th>
                        <hr>
                          <tr *ngFor="let item of topFiveActiveMerchant; index as i;">
                            <td>{{i+1}}</td>
                            <td>{{item.merchant_name}}</td>
                            <td>{{item.merchant_name}}</td>
                            <td>{{item.created_date | date:'dd/MM/yyyy h:mm a'}}</td>
                          </tr>
                    </table>

```

I want it to be something like this
[![Want this design](https://i.stack.imgur.com/8foa3.png)](https://i.stack.imgur.com/8foa3.png)

but i ended up with
[![Ended up with this](https://i.stack.imgur.com/Yf1rj.png)](https://i.stack.imgur.com/Yf1rj.png)

Answer: 
One oversight (remove the heads):
`printf("\n\n--- TOTAL COUNT ---\n", heads);`

you may also want to remove `getch();` inside `flip()` and fix the indentation of the overall file if that matters.
1. NO need to define function signature above the main and implement later. You can do this in one way.
2. Need to return 0 in your main function(last line in your main function).
3. Don't use unnecessary header unless you use their function/value.