Question

Write the syntax of looping control statements. Also draw the flowchart for each statement. Write a program in C to generate the following pattern : 

                            *

                           * *

                          * * * 

27 Apr 2023
Answer :
Word Count : 421

Here's the syntax for looping control statements in C:

  1. For Loop:

for (initialization; condition; increment/decrement) {
    // code to be executed
}

The flowchart for a for loop can be represented as follows:

        Initialization              |           Condition          /         \   True  /           \ False        /             \     Code           Exit 
____ ____ ______ _____ __________.
_____ ___ ____ ___ ______ ________.
________ ______ ________ _________ ______.
____ _________ ____ __________ ______ ____ ______ ___ ________.
________ _________ ____ ________ ________ _______ __________ ______ ________ __________ _______.
______ _______ _____ __________ ______ _______ _______.
__________ ___ ________ _____ __________ __________ __________ __________.
________ ___ _________ ________ ______ ___ _______ _________ ____.
__________ ____ ____ __________ ___ ____ _______ ________.
________ ____ ______ __________ _____.
____ ______ ____ ______ ________.
__________ __________ _____ ______ _______ _____ ________ ___ ___ ________.
_______ __________ __________ ______ ____ ________ ___ _____ ____ ___ _____.
__________ _____ _____ _____ _____ ____ __________ ____ ____ ______.
___ ________ _________ __________ _________.
_________ ____ _____ ______ _________ __________ _____ _____ _______.
________ ____ _________ __________ _______ ________ ________ _______ _______ ______ _________.
________ _____ _____ ______ ________ ____.
____ _____ _________ ______ ____ ________ ______ _________ __________ _______ ________ ________.
_____ __________ ________ ___ _________ ____ _________ __________.
______ ____ ____ _______ _____.
_____ _____ ______ _____ _______ _____ ________ ___ __________ _____ ______.
______ ________ ____ __________ __________ _____ ________ _________ ______ ______ ____.
_________ _________ ____ __________ _______ _______ _____ _______ ______ ____ ________ ________.
______ _____ __________ ________ ______ ___ _____ _________ _________.
___ _____ ____ _____ __________ ______ _____ ____ ___ ________ ________ ______.
_____ _____ _____ ____ ____ __________ ____ ___ ____ ______ __________ _____.
____ ________ ______ __________ _________ __________ _______ ________.
__________ __________ _______ ____ _____ _________ ______ ______.
______ _______ ________ ______ _________ _______ _________ __________ _________ __________ _____.
_________ ________ _______ _________ ________ ____ __________ _______ ______ _______ ______ __________.
________ ___ __________ __________ __________ _______ ___ ___ _____.
______ _______ ______ ___ ____ __________ ___.
_____ _________ _________ ______ ______.
________ _____ __________ _______ ______ ________ ______ _______ _________.
__________ ___ __________ _______ __________.
______ _____ _____ _____ ________ ___ ______.
________ ___ ____ ___ __________ ________ ________.
__________ __________ ______ _______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 201 2023 - Write the syntax of looping control statements. Also draw the flowchar | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→