Lab Test_2 - cin>>n for (int i=0...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 //Cheu Lee Lab TEST #2 #include <iostream> #include <cmath> using namespace std int main() { int n, m, x cout<<"Please enter a postive interger"<<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: cin&gt;&gt;n for (int i=0 i&lt;=n i++){ if (n%7==0){ cout&lt;&lt;n&lt;&lt;endl } else{ m=n/7 x=m*7 cout&lt;&lt;x&lt;&lt;endl } return 0 r } }...
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