/* * sample.cpp * * * Created by HelloWorld on 4/17/07. * Copyright 2007 __MyCompanyName__. All rights reserved. * */ #include #include #include using namespace std; int main () { string mystr; float first=0; float second=0; float missing=0; int triang=180; cout << "Enter First Number: "; getline (cin,mystr); stringstream(mystr) >> first; cout << "Enter Second Number: "; getline (cin,mystr); stringstream(mystr) >> second; missing=first+second; cout << "Missing amt: " << triang-missing << endl; return 0; }