diff options
Diffstat (limited to 'comp/work/11/area.py')
-rwxr-xr-x | comp/work/11/area.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/comp/work/11/area.py b/comp/work/11/area.py new file mode 100755 index 0000000..c4e2359 --- /dev/null +++ b/comp/work/11/area.py @@ -0,0 +1,7 @@ +def area(length, height): + return length * height + +length = int(input("the length of the shape: ")) +height = int(input("the height of the shape: ")) + +print(area(length,height)) |