Question: Need some help with those C++ codes. Programs cannot run on Microsoft Visual Studio #include using namespace std; int main() { double lbs, kg, in,

Need some help with those C++ codes. Programs cannot run on Microsoft Visual Studio

#include using namespace std;

int main() { double lbs, kg, in, cm;

// conversions

// convert pounds to kg

cout << "How many pounds? "; cin >> lbs;

kg = lbs / 2.205;

cout << "That equals " << kg << " kilograms "

// convert kg to pounds

cout << "How many kilograms?"; cin >> kg; lbs = kg * 2.205;

cout << "That equals " << lbs << " pounds ";

// convert inches to cm

cout << "How many inches? "; cin >> in; cm = in * 2.54;

system("pause"); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!