How to print the patter "i" in python?
Answers
Answered by
1
Answer:
To print star Pattern in I shape in python you have to use two for loops. the first loop is responsible for rows and the second for loop is responsible for columns.
Explanation:
pls mark me brainliest
Answered by
1
Answer:
Pattern program in C
int main() { int row, c, n;
printf("Enter the number of rows in pyramid of stars to print\n"); scanf("%d", &n);
for (row = 1; row <= n; row++) // Loop to print rows. { ...
for (c = 1; c <= 2*row - 1; c++) // Loop to print stars in a row. printf("*");
for (c = 1; c <= 2*row - 1; c++) // Loop to print stars in a row. printf("*");printf("\n"); }
Similar questions