Computer Science, asked by anushkamishra591, 10 months ago

Please help me to solve this python programming question!!!

Attachments:

Answers

Answered by nikhil7114
0

Answer:

sorry I missed programming

Answered by CoolorFoolSRS
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