Example2_4 - cout << "5.0 / 2.0 = "...

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 << "5.0 + 3.5 = " << 5.0 + 3.5 << endl; cout << "3.0 + 9.4 = " << 3.0 + 9.4 << endl; cout << "16.3 - 5.2 = " << 16.3 - 5.2 << endl; cout << "4.2 * 2.5 = " << 4.2 * 2.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 << "5.0 / 2.0 = " << 5.0 / 2.0 << endl; cout << "34.5 / 6.0 = " << 34.5 / 6.0 << endl; cout << "34.5 / 6.5 = " << 34.5 / 6.5 << endl; return 0; }...
View Full Document

This note was uploaded on 03/08/2011 for the course CSIT 139 taught by Professor Duzut during the Spring '11 term at Los Angeles City College.

Ask a homework question - tutors are online