0% found this document useful (0 votes)
350 views

Assignment 3

The program prompts the user to input a length and width, passes those values to an area calculation function that multiplies length by width, returns the area result, and displays the calculated area.

Uploaded by

Andrew Carts
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
350 views

Assignment 3

The program prompts the user to input a length and width, passes those values to an area calculation function that multiplies length by width, returns the area result, and displays the calculated area.

Uploaded by

Andrew Carts
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

START

Display message for user input for length


Read length
Display message for user input for width
Read width
Call areacalc (length, width)
area = length * width
Return area
Display message showing area
END

START
Display message
prompting user input for
length

Read length

Display message
prompting user input for
width

Read width

Call areacalc (length, width)

area = length * width

Return area

Display message
indicating area

END

You might also like