| Author: Anonymous | Language: cpp |
| Description: No description | Timestamp: 2007-10-17 15:10:09 -0400 |
| View raw paste | Reply |
- void main() {
- int n, i, j;
- cout << "Enter an integer." << endl;
- cin >> n;
- for (i = 0; i < n; i++) {
- if ((i % 2) == 0){
- cout << " ";
- }
- for (j = 0; j < n; j++) {
- cout << "*";
- }
- cout << endl;
- }
- }
| View raw paste | Reply |
