Type include iostream using namespace std int main int

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: of characters, "abcd") int type #include <iostream> using namespace std; int main() { int i1; int i2; cin >> i1 >> i2; cout << i1 << " + cout << i1 << " cout << i1 << " * cout << i1 << " / cout << i1 << " % return 0; } " " " " " << << << << << i2 i2 i2 i2 i2 << << << << << " " " " " = = = = = " " " " " << << << << << i1 i1 i1 i1 i1 + * / % i2 i2 i2 i2 i2 << << << << << "\n"; "\n"; "\n"; "\n"; "\n"; double type #include <iostream> using namespace std; int main() { double d1; double d2; cin >> d1 >> d2; cout << "-" << d1 cout << d1 << " + cout << d1 << " cout << d1 << " * cout << d1 << " / return 0; } << " " << " << " << " << = " << -d1 << "\n"; d2 << " = " << d1 + d2 << " = " << d1 d2 << " = " << d1 * d2 << " = " << d1 / d2 d2 d2 d2 << << << << "\n"; "\n"; "\n"; "\n"; string type #include <iostream> #include <string> using namespace std; int main() { string s1; string s2; cin >> s1 >> s2; cout << s1 << " + " << s2 << " = &quo...
View Full Document

This note was uploaded on 09/26/2013 for the course CMPS 100 taught by Professor Wang during the Fall '13 term at Pennsylvania State University, University Park.

Ask a homework question - tutors are online