Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.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 height;
- double bmi = ((weight*.45) / (pow((height*.025), 2)));
- 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