## C Program to find area of Right angled triangle

### Description

```Get length and width of right angled trianlgle and find area of right angled triangle
Sample Input 1:
4 5
Sample Output 1:
10

```

### Solution

```#include<stdio.h>

int main()

{

int length,width,area;
printf("Enter length and width of a triangle:");
scanf("%d %d",&length,&width);

area=(length*width)/2;
printf("\nArea of Right angled Triangle: %d",area);

return 0;

}```

### Explanation

```Get length and width of a right angled triangle (using scanf statement)

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

print area (using printf statement)```

### 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```