1. Heartbeat: Write a program that prompts for a person’s age in years and heartbeats rate per minute. The program computes and outputs the number of heartbeats since the person was born. You may assume that there are 365 days in a year.
output/input:
Age=int(input("Enter the Age: "))
Heartbeat=int(input("Enter the heart beat rate: "))
H=24*60*365*Age*Heartbeat
print("The number of heartbeats since the person was born is ",H)
Comments
Leave a comment