Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Can we use three loop in a single C programe

+7 votes
asked Oct 8, 2022 by asish sarkar (350 points)

4 Answers

+5 votes
answered Oct 10, 2022 by Peter Minarik (86,160 points)
You can use as many loops as you want. Just keep track of which loop is which for nested loops, so keep your code properly indented.
+2 votes
answered Oct 15, 2022 by Ripu Sudan Soni (190 points)
you can use many number of loop it's depend on your answer logic.
+1 vote
answered Oct 16, 2022 by Ekta singh (160 points)

yes we can use three or more than three loop in a single c program by using nested loop. 

like this 

for ( init; condition; increment ) {

   for ( init; condition; increment ) {
      statement(s);
   }
   statement(s);
}
0 votes
answered Oct 17, 2022 by Harshit Yadav (190 points)
yes, multiple looping statements can be used within the single c program using nested looping depending on the problem logic
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...