Python Programming

Wednesday, May 22, 2019

WAP to find out the area of a triangle

base = float(input('Enter Base = '))
height = float(input('Enter Height = '))
print('-'*10)
print('area = ' + str((base * height) / 2))

Posted by varun wadhwa at 7:11 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Youtube Channel

Contributors

  • Varun wadhwa
  • varun wadhwa

Blog Archive

  • ▼  2019 (22)
    • ►  July (7)
    • ►  June (1)
    • ▼  May (14)
      • WAP to print the system date
      • WAP to input the temperature in Fahrenheit and con...
      • WAP to input a number. If the number is even, prin...
      • WAP to input employee code, name and basic salary ...
      • WAP to find out the area of a triangle
      • WAP to input inches from the user and convert it i...
      • WAP to input a character and print its ASCII value
      • WAP to input principle, rate and time from the use...
      • WAP to input side of a square and calculate the area
      • WAP to input length and breadth of a rectangle and...
      • WAP to input radius and calculate the area and cir...
      • WAP to input a number and print its cube
      • WAP to find out the square of a given number
      • WAP to input roll number, name, marks and phone of...
Picture Window theme. Powered by Blogger.