Please help me to solve this python programming question!!!
Attachments:
Answers
Answered by
0
Answer:
sorry I missed programming
Answered by
0
I can give in C programming:
int main() {
int n;
printf("Enter number of rows: ");
scanf("%d", &n);
for (int row = 0; row < n; row++) {
for (int column = n-1; column >=0; column--) {
if (row == 0 || row == n - 1 || column == n - 1 - row)
{
printf("* ");
}
else {
printf(" ");
}
}
printf("\n");
}
return 0;
}
Similar questions