{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lee_assig15 - for(int j=1 j<=width j...

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<=width j++) cout <<"*"<<" "<<endl } cout<<endl } { int base cout<<"Enter the base"<<endl cin>>base for (int b=1 b<=base b++) cout<<"*"<<" "<<endl { for (int tb=1 tb<=base-b+1 tb++) cout<<"*"<<" "<<endl } cout<<endl return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online