Question

Write a C program to generate the following pattern:

10 Feb 2025
Answer :
Word Count : 419
```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 _______ ____ _______ ______ ______ _______ ______ ______ __________ ________.
________ _____ _________ _____ ________ _______ ____ ___ _________ _______ ________.
___ ______ ________ ___ ____ ____ __________.
___ __________ _______ ____ ____ ________ _____.
____ ______ ____ __________ _______ ________ _____ ____ _____ ______ _____ _____.
_________ __________ ________ __________ _______ _________ _________ ________ ________.
___ _____ ________ _____ ___ _____ __________ ________ ____ ________ _____.
____ _______ __________ _______ ______ _____ _____.
_________ ____ _______ _____ ______ __________ _______ ______.
______ _____ __________ ___ _________ _________ ______ __________ _______ _________.
________ ____ ___ ________ _____ ______ ___ _______ ______ ____.
___ ________ _______ ________ ______ ______ _____ _______.
______ ____ _____ _________ _____ ____ ____.
____ _______ __________ ________ _________ ________.
_____ __________ _________ _________ ___ _____ _______.
________ _________ _______ ________ _________ ___ ____ ________ _____ ____ ______.
__________ __________ ________ ______ ________.
_________ _________ _______ __________ _________ ____ ________ ___ _________ ____ ___.
_________ ______ ____ ____ ______ ___ ___ _______.
_______ ___ _______ ____ ___ ________ ____ ___.
_______ ________ ________ ______ _________ ___ ________ ________ __________ _____ _________.
_____ ___ _____ ________ _______ ___ _____ __________ _____ __________ _______.
________ __________ _____ ________ ________ ____ ______ ________.
________ ____ ____ _________ ______ _______ ______.
__________ __________ ___ ________ _________ ___ __________ _________ ____ _______ _______.
_______ _______ ________ _________ ________ _______.
________ ____ ______ ___ ________ _____ ______ _____ ________ _______ _________ ______.
__________ ______ ________ ________ ______ _______ ______ ___ _____.
________ _______ ________ __________ _____ _________.
_______ __________ ________ ____ _____ __________ __________.
_________ ________ ______ ________ ______ ___.
__________ ______ ______ ______ ______ _______ __________ ____ ___ ________ ______.
______ ________ _________ ____ ________ ___ ____ ________.
___ _______ __________ ____ ___ __________ _______ _______ _______ _________ ________.
______ ________ _____ ___ _______ _________ ____ _________ ________ ______ ______.
___ ____ _______ _____ __________.
_____ _______ _______ _____ __________.
_____ _________ ____ _______ ______ _________ ____ ______ ____ _____ ____ ___.
___ ______ _______ ______ ____ _____.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a C program to generate the following pattern:
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→