12345678910111213
for(int i=1; i<24; i++) { for(int k=1; k<82; k++) { if(k==79) { cout << "*"; k=1; } cout << " "; } cout << "*"; }
12345678
for(int r=0;r!=5;++r) { for(int c=0;c!=10;++c) { cout<<"*"; } cout<<"*"<<endl; }
1234567891011121314151617181920212223242526272829
#include <iostream.h> #include <string.h> void main() { for(int z=1; z<=79; z++) { cout << "*"; } cout << endl; for(int i=1; i<=5; i++) { cout << "*"; for(int j=1; j<=77; j++) { cout << " "; } cout << "*" << endl; } for(int y=1; y<=79; y++) { cout << "*"; } cout << endl; }