From 9871aa99f3272e3efe90aa9d6500c6b570a0de09 Mon Sep 17 00:00:00 2001 From: jdavilabeaz2401 Date: Wed, 26 Nov 2025 13:43:11 -0500 Subject: [PATCH] modified the print formats --- rectanglar-solid01.py | 2 +- rectangle01.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rectanglar-solid01.py b/rectanglar-solid01.py index 4aaa83c..4b5fafd 100644 --- a/rectanglar-solid01.py +++ b/rectanglar-solid01.py @@ -5,4 +5,4 @@ height = float(input("Enter a value for height ")) volumeOfRectangle = length * width * height -print(f"Area = {volumeOfRectangle:.2f}") \ No newline at end of file +print(f"Area = {volumeOfRectangle:.1f}") \ No newline at end of file diff --git a/rectangle01.py b/rectangle01.py index fd822ec..7afaa50 100644 --- a/rectangle01.py +++ b/rectangle01.py @@ -4,4 +4,4 @@ width = float(input("Enter a value for width ")) areaOfRectangle = length * width -print(f"Area = {areaOfRectangle:.2f}") \ No newline at end of file +print(f"Area = {areaOfRectangle:.1f}") \ No newline at end of file