import streamlit as st import math st.title("Circle Area Calculator") radius = st.number_input("Enter the radius of the circle:", min_value=0.0, step=0.1) if st.button("Calculate Area"): if radius > 0: area = math.pi * radius**2 st.success(f"The area of the circle with radius {radius} is: {area:.2f}") else: st.error("Please enter a positive radius.")