Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds. (Note that 1 kilogram 52.2 pounds.)
Add your name and comments to the .cpp page
Print your name on screen
Submit .cpp file
#include <iostream> using namespace std; int main() { double km, pounds; cout<<"Enter the weight of a person in kilograms: "; cin>>km; pounds = km * 2.20462; cout<<"Equivalent weight in pounds: "<<pounds<<endl; return 0; }
Get Answers For Free
Most questions answered within 1 hours.