Answer:
Following are the program in the Python Programming Language.
#get input from the user length of the pizza
inputStr = input('Enter the length of pizza: ')
#convert input into float
L = float(inputStr)
#initialize the area of the pizza
A = L*L
#calculate the amount of peoples can eat pizza
men = int(A/100)
#print the number of peoples
print('\\Pizza can be eaten by {} people'.format(men))
Output:
Enter the length of pizza: 20
Pizza can be eaten by 4 people
Step-by-step explanation:
Following are the description of the program.
- Firstly, set a variable that get length input from the user.
- Set variable 'L' that convert the input from the user into the float data type.
- Set variable 'A' that stores the area of the pizza.
- Set variable 'men' that store the amount of peoples can eat pizza.
- Finally, print the number of peoples can eat pizza.