Area of Right angled triangle in Python

Description

Python program to 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

l=int(input("Enter the length:"))
w=int(input("Enter the width:"))
area=(l*w)/2
print("Area: {}".format(area))

Explanation

get length and width of a right-angled triangle using input() method
calculate area = length * width



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