Search for question
Question

Write a program named pyramid_area1.py that will ask the user to input the length of one side of the prism (in meters) and the number of layers of the pyramid. Your

program must use a loop. After you complete this program, write a second program named pyramid_area2.py that performs the same calculation - but this time without a loop (hint: arithmetic progression). Your programs may NOT use lists, tuples, or dictionaries.