2011- 12- 27
|
#8
|
أكـاديـمـي ألـمـاسـي
|
رد: اختبار مبادئ برمجه
هذا المستطيل
#include<iostream.h> #include<conio.h> void main() { int l,i,j,w; cout<<"\n please enter the length:"; cin>>l; cout<<"\n please enter the width:"; cin>>w; for(i=1;i<=w;i++) { cout<<"\n"; for(j=1;j<=l;j++) cout<<"*"; } getch(); }
|
|
|
|