In python:
def calculateRadius(r):
return (22 / 7) * r * r
def main():
quantity = int(input("How many times do you want to calculate the are? "))
radius = float(input("What's the radius of your circle? "))
i = 0
while i < quantity:
calculateRadius(radius)
i += 1
if __name__ == "__main__":
main()
I hope this helps!