0% found this document useful (0 votes)
30 views6 pages

Exerciseweek 7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views6 pages

Exerciseweek 7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Exercise

PYTHON PROGRAMMING
EXERCISE 1.

Write a Python program that calculates the area of a rectangle given its length and width.

Design the flowchart before proceed to programming the code

Start

Input float, length and width of rectangle

Calculate area = length * width

Output the calculated area

End
Code program
EXERCISE 2.

Write a Python program that calculates the area of circle

Design the flowchart before proceed to programming the code

Start

Input float, length and width of rectangle

Calculate area = length * width

Output the calculated area

End
Code program
ASSIGNMENT 1

Refer to Author

You might also like