2.26

 avatar
unknown
c_cpp
5 months ago
428 B
13
Indexable
#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    int age, weight, heartRate, time;
    double calories;
    
    cin >> age >> weight >> heartRate >> time;
    
    calories = ((age * 0.2757) + (weight * 0.03295) + (heartRate * 1.0781) - 75.4991) * time / 8.368;
    
    cout << fixed << setprecision(2);
    cout << "Calories: " << calories << " calories" << endl;

    return 0;
}
Editor is loading...
Leave a Comment