## C Program to find area of triangle

### Description

```Get base width and height of triangle and find area of triangle
Sample Input 1:
4 5
Sample Output 1:
10
```

### Solution

```#include<stdio.h>

int main()

{

int base,height,area;
printf("Enter base and height of trianlge:");
scanf("%d %d",&base,&height);

area=(base*height)/2;
printf("\nArea of Triangle:%d",area);

return 0;

}```

### Explanation

```Get height and width of a  triangle (using scanf statement)

Calculate area by dividing product of height and width by 2  (area = length * width/2)

print area (using printf statement)```

#### Author - Ramesh P Natarajan

Learner, Professor, Technology Trainer, Software Developer and Content Marketer, very much passionate in the field of Software Application Development, Machine Learning and Search Engine Optimization.

### Interesting Pattern Programs: for more Patterns

```Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution```
```Input:
5
Output:
*
***
*****
*******
*********
*******
*****
***
*Solution```
```Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution```
```Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution```
```Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution```
```Input:
5
Output:
*********
*******
*****
***
*
***
*****
*******
*********Solution```