Example2_3 - cout<<"14 7 ="<< 14 7<<...

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

View Full Document Right Arrow Icon
#include <iostream> # using namespace std; u int main() { cout << "2 + 5 = " << 2 + 5 << endl; cout << "13 + 89 = " << 13 + 89 << endl; cout << "34 - 20 = " << 34 - 20 << endl; cout << "45 - 90 = " << 45 - 90 << endl; cout << "2 * 7 = " << 2 * 7 << endl; cout << "5 / 2 = " << 5 / 2 << endl;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << "14 / 7 = " << 14 / 7 << endl; cout << "34 % 5 = " << 34 % 5 << endl; cout << "-34 % 5 = " << -34 % 5 << endl; cout << "34 % -5 = " << 34 % -5 << endl; cout << "-34 % -5 = " << -34 % -5 << endl; cout << "4 % 6 = " << 4 % 6 << endl; return 0; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online