Is this self advertising because its not a question so i have no answer for you and if i missed something on the website that was a question let me know
In python:
age = float(input("How old are you? "))
weight = float(input("How much do you weigh? "))
heart_rate = float(input("What's your heart rate? "))
time = float(input("What's the time? "))
print("The calories burned for men is {}, and the calories burned for women is {}.".format(
((age * 0.2017) - (weight * 0.09036) + (heart_rate * 0.6309) - 55.0969) * (time / 4.184),
((age * 0.074) - (weight * 0.05741) + (heart_rate * 0.4472) - 20.4022) * (time / 4.184)))
This is the program.
When you enter 49 155 148 60, the output is:
The calories burned for men is 489.77724665391963, and the calories burned for women is 580.939531548757.
Round to whatever you desire.
function myFunction(num){
n = 0;
total = 1;
while (n < num){
total *= (num - n);
n+=1;
}
return total;
}
alert(myFunction(6));
I'm not too proficient in JavaScript but here's what the function would look like. I hope this helps!