#include <iostream>
using namespace std;
int main () {
for (int i = 0; i < 50; i++) {
if (i == 0 || i == 49) {
for (int j = 0; j < 50; j++) {
cout << "*";
}
cout << endl;
}
else {
for (int j = 0; j < 50; j++) {
if (i + j == 50) {
cout << "*";
}
else {
cout << " ";
}
}
cout << endl;
}
}
return 0;
}
Comments
Leave a comment