Lee_assig4a - if(A<=B cout<<"A ="<<A<<"B ="<<B if(A>B M=A A=B B=M

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

View Full Document Right Arrow Icon
#include<iostream> #include<cmath> using namespace std; //Cheu Lee HmWrk 4A int main () { int A,B,M; cout<<"Enter Two Intergers: "; cin>>A>>B;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if(A<=B) cout<<"A = " <<A<< "B = " <<B; if(A>B) { M=A; A=B; B=M; cout<<"A= "<<A<<"B= "<<B<<endl; } return 0; }...
View Full Document

This note was uploaded on 05/16/2010 for the course CISCO EST61 taught by Professor Miller during the Spring '10 term at Fresno City College.

Ask a homework question - tutors are online