All pastes #445724 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-18 01:41 UTC
rendered paste body
/*
 *  sample.cpp
 *  
 *
 *  Created by HelloWorld on 4/17/07.
 *  Copyright 2007 __MyCompanyName__. All rights reserved.
 *
 */
#include <iostream>
#include <string>
#include <sstream>
using namespace std;

int main ()
{
  string mystr;
  float first=0;
  int 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;
}