You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int i, j;
|
|
int line = 0;
|
|
scanf("%d", &line);
|
|
line--;
|
|
for (i = 0; i <= line; i++) {
|
|
for (j = 0; j <= line; j++) {
|
|
if (i <= j)
|
|
printf("* ");
|
|
else
|
|
printf(" ");
|
|
}
|
|
printf("\n");
|
|
}
|
|
return 0;
|
|
} |