Question
Write a C program to generate the following pattern:
Answer :
Word Count : 419
________ ____ ____ ___ ________.
_____ ______ ____ ____ ________.
___ _______ ________ _______ ___ _______ ___ _____ ________.
___ _____ _________ __________ ____ ______ _______ ________ ________ ____ ______ ______.
_____ _______ __________ ______ ______ ____ _________ ______ __________.
____ ________ _________ ____ ____.
_____ _______ ________ __________ ___ _______ _____ _____ ___ ___.
_____ _____ __________ ________ __________ __________ ______ ____ ________ ______ _______.
________ _____ __________ _________ ________ _____ _______.
______ _____ ________ _____ ________ _________ _______ __________ _________ _________ ________.
____ __________ ____ ____ __________ ________ __________ ______ ____.
_________ _____ ________ _______ _________ ________ ___ ________ _____ _______ ________.
_______ ________ _____ ________ ____ ______ ___ ______ ____.
______ _______ ____ ________ ____ _____ _______ ______ _______ _____ __________ ____.
______ _________ ______ ___ ____ ________ ________ ________ _________ ____ ______.
_________ ____ ____ __________ ______ ______ _____ ______ _______ __________ ___ _______.
__________ ________ _______ _____ ___ _________ ________.
___ ______ _____ ______ ___ _________ _____ _________ ____ ____ ______.
________ ______ _________ ___ ____ ______ ______.
____ ____ ______ _________ ______ _________ ____.
_________ ________ ______ ______ _________ ________ ____ _______ ____ _____ _____ ___.
_________ _____ ________ ______ __________ __________ _________ ___ __________ _______ ___.
________ ___ __________ ___ ______ _______ ____.
_________ ________ ______ __________ _______.
________ _____ ___ ______ ______ ______ __________ __________ _____ __________.
_______ ______ _______ _____ ______ ___ ______ __________ __________ ____ ___.
_______ _______ ___ __________ ______ __________ ______ ____ _________ ___.
_________ ___ _________ ________ _______ _______ _________ ____.
________ _____ ______ ___ ______ __________ _____ ________ ______ ______ _______.
________ ____ _______ _________ ______ ___ _________ _______ ___.
_____ ___ _______ _______ _____ __________ ______ __________ _______ ___ ____.
_______ __________ ______ ________ ________ ______ _________ _________.
_____ ________ _________ ______ ____ _______ _____ _________.
_____ ______ ___ ___ _______.
__________ ____ _________.
Skip in 10
```c #include int main() { int i, j, rows; printf("Enter number of rows: "); scanf("%d", &rows); for(i = 1; i <= rows; i++) { for(j = 1; j <= i; j++) { printf("* "); } printf("\n"); } return 0; } ``` Pattern generation in programming is one of the most effective exercises to strengthen understanding of loops and nested structures. The given C program demonstrates how nested loops work together to create a triangular star pattern. The outer loop controls the number of rows, while the inner loop determines how many stars should be printed on each row. Each iteration of the outer loop
___ __________ _____ ______ _____.________ ____ ____ ___ ________.
_____ ______ ____ ____ ________.
___ _______ ________ _______ ___ _______ ___ _____ ________.
___ _____ _________ __________ ____ ______ _______ ________ ________ ____ ______ ______.
_____ _______ __________ ______ ______ ____ _________ ______ __________.
____ ________ _________ ____ ____.
_____ _______ ________ __________ ___ _______ _____ _____ ___ ___.
_____ _____ __________ ________ __________ __________ ______ ____ ________ ______ _______.
________ _____ __________ _________ ________ _____ _______.
______ _____ ________ _____ ________ _________ _______ __________ _________ _________ ________.
____ __________ ____ ____ __________ ________ __________ ______ ____.
_________ _____ ________ _______ _________ ________ ___ ________ _____ _______ ________.
_______ ________ _____ ________ ____ ______ ___ ______ ____.
______ _______ ____ ________ ____ _____ _______ ______ _______ _____ __________ ____.
______ _________ ______ ___ ____ ________ ________ ________ _________ ____ ______.
_________ ____ ____ __________ ______ ______ _____ ______ _______ __________ ___ _______.
__________ ________ _______ _____ ___ _________ ________.
___ ______ _____ ______ ___ _________ _____ _________ ____ ____ ______.
________ ______ _________ ___ ____ ______ ______.
____ ____ ______ _________ ______ _________ ____.
_________ ________ ______ ______ _________ ________ ____ _______ ____ _____ _____ ___.
_________ _____ ________ ______ __________ __________ _________ ___ __________ _______ ___.
________ ___ __________ ___ ______ _______ ____.
_________ ________ ______ __________ _______.
________ _____ ___ ______ ______ ______ __________ __________ _____ __________.
_______ ______ _______ _____ ______ ___ ______ __________ __________ ____ ___.
_______ _______ ___ __________ ______ __________ ______ ____ _________ ___.
_________ ___ _________ ________ _______ _______ _________ ____.
________ _____ ______ ___ ______ __________ _____ ________ ______ ______ _______.
________ ____ _______ _________ ______ ___ _________ _______ ___.
_____ ___ _______ _______ _____ __________ ______ __________ _______ ___ ____.
_______ __________ ______ ________ ________ ______ _________ _________.
_____ ________ _________ ______ ____ _______ _____ _________.
_____ ______ ___ ___ _______.
__________ ____ _________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.