orderOfOps - cout<< endl<<(9 6 4 5<< endl...

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

View Full Document Right Arrow Icon
// filename: orderOfOps // author: j. dzuback /* The program will perform a series of arithmetic operations and implicitely demonstrate the order in which arithmetic operations are performed. .. */ #include <iostream> # using namespace std; u int main(void) { cout << fixed << showpoint; cout << endl << 9 + 6 * 4 + 5 << 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 << endl << (9 + 6) * 4 + 5 << endl; cout << endl << 9 * 6 % 4 + 5 << endl; cout << endl << 9 * 6 % (4 + 5) << endl; cout << endl << 9 + 6 / 4 * 5 << endl; cout << endl << (9 + 6) / 4 * 5 << endl; cout << endl << "**** end of orderOfOps *****" << endl; }...
View Full Document

This note was uploaded on 02/08/2011 for the course CSC 101 taught by Professor Joedzuback during the Spring '11 term at Union County.

Ask a homework question - tutors are online