Python Programming

Friday, May 10, 2019

WAP to input length and breadth of a rectangle and calculate the area and perimeter

Length = float(input('Enter Length = '))
Breath = float(input('Enter Breath = '))
print('-'*10)
print('perimeter = ' + str(2*(Length + Breath)))
print('area = ' + str(Length * Breath))
Posted by Varun wadhwa at 6:40 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.