admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Area and Perimeter of a Rectangle

Sunita Chhetry
110 Posts

WAP to accept length and breadth of a rectangle then calculate and display its area and perimeter. Area= length *breadth and perimeter=2*(l + b)

Eg:

Length=10

Breadth=30

Perimeter=2*(10+30)

 

Output

Area=300

Perimeter=80(2*10+30=80)

Published By : Sunita Chhetry
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin