Area of Rectangle
Python
Easy
3 views
Problem Description
Read two numbers length L and width W. Output area L*W. Output without trailing zeros (like Python str()).
Input Format
One line: L W.
Output Format
One number area.
Official Solution
import sys
s=sys.stdin.read().strip().split()
if not s: sys.exit(0)
L=float(s[0]); W=float(s[1])
area=L*W
sys.stdout.write(str(area))
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!