Public feed #888576

Miscellany

public text v1 · immutable
Raw Edit
·published 2008-02-02 06:56 UTC
rendered paste body
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
	double pounds=0;
	while(pounds!=-1)
	{
		cout<<"Please enter the weight in Pounds(-1 to quit): ";
		cin>>pounds;
		if(pounds!=-1) //dont convert the quit!
			cout<<"The weight in kilograms is:"<<pounds*0.45359237<<endl;
	}
	
	
	return 0;
}