assign - l = i * j * k; cout << l...

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

View Full Document Right Arrow Icon
// assign.cpp #include <iostream.h> # int main() { int i = 2; int j = 3; int k = 4; int l; float a = 0.5; float b = 3.0; float c; l = i + 2; cout << l << '\n'; l = l - j; cout << l << '\n';
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: l = i * j * k; cout &lt;&lt; l &lt;&lt; '\n'; l = k / i; cout &lt;&lt; l &lt;&lt; '\n'; c = b * a; cout &lt;&lt; c &lt;&lt; '\n'; c = b / a; cout &lt;&lt; c &lt;&lt; '\n'; return 0; }...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTER 12 taught by Professor Aymanboghdady during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online