Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication17.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- using namespace std;
- int main()
- {
- double weight;
- double calcweight = (weight*.45);
- double height;
- double height2 = (height*.025);
- double calcheight = pow(height2, 2);
- double bmi = (calcweight / calcheight);
- cout << "enter in weight " << endl;
- cin >> weight;
- cout << "enter in height" << "\n";
- cin >> height;
- cout << "your bmi is " << bmi << "." << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement