Sec03_aakashs_even - for(1<a a<(num-1 a=a 1 b= a%2 if(b==0 cout<< a<< endl return 0*Collaborators Shiv Desai and Cameron DeAngeles/

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

View Full Document Right Arrow Icon
#include <iostream> using namespace std; int main() { int num; int a; int b; cout << "Enter an integer" << endl; cin >> num; cout << "The numbers are:" << 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: for (1<a; a<(num-1);) { a=a+1; b= a%2; if (b==0) { cout << a << endl; }} return 0; } /*Collaborators Shiv Desai and Cameron DeAngeles*/...
View Full Document

This note was uploaded on 03/30/2011 for the course ENGINEERIN 127 taught by Professor Finch during the Spring '08 term at Rutgers.

Ask a homework question - tutors are online