2081 1

C Programming208110 marksLoop control statements

What is loop? Differentiate between break and continue statement.Write a program to find sum of first N natural numbers.[6+4]

What is loop? Differentiate between break and continue statement.Write a program to find sum of first N natural numbers.[6+4]

--- A loop is a control structure that allows repeated execution of a block of statements as long as a given condition remains true. Loops are used to avoid writing the same code multiple times. Loop Type Description ------------------------ for loop Used when the number of iterations is known wh...

Up nextWhat is pointer? How it differs from array?Write a program to add two 2D matrices.[4+6]