Lee_assig15 - { for (int j=1 j<=width j++) cout

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

View Full Document Right Arrow Icon
Sheet1 Page 1 //Cheu Lee Assign15 #include<iostream> #include<cmath> using namespace std int main() { int i=1 while (i<=50) { cout<<i*i<<" " if (i%10==0) cout<<endl i++ } int length, width cout<<"Enter the length and width"<<endl cin>>length>>length for (int i=1 i<=3 i++) if (i=width) cout<<"*"<<" "<<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 (int j=1 j&lt;=width j++) cout &lt;&lt;&quot;*&quot;&lt;&lt;&quot; &quot;&lt;&lt;endl } cout&lt;&lt;endl } { int base cout&lt;&lt;&quot;Enter the base&quot;&lt;&lt;endl cin&gt;&gt;base for (int b=1 b&lt;=base b++) cout&lt;&lt;&quot;*&quot;&lt;&lt;&quot; &quot;&lt;&lt;endl { for (int tb=1 tb&lt;=base-b+1 tb++) cout&lt;&lt;&quot;*&quot;&lt;&lt;&quot; &quot;&lt;&lt;endl } cout&lt;&lt;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