University School of Automation & Robotics

Personal resource archive for various courses.

q5.py

# Write a program that receives input from the user to calculate the area of a square.

side = int(input("Enter side length of square(m): "))
print(f"Area of square of side length {side} is {side * side}.")