The correct loops to print the pattern below are
Types of Loop
Loops are the elements of programming in which a part of code is repeated a particular number of times. Loop executes the series of statements many times till the conditional statement becomes false.
Loops
Any task which is repeated more than one time is called a loop. Basically, loops can be divided into three types as while, do-while and for loop. There are so many programming languages like C, C++, JAVA, PYTHON, and many more where looping statements can be used for repetitive execution.
While Loop
Loop is a feature in the programming language. It helps us to execute a set of instructions regularly. The block of code executes until some conditions provided within that Loop are true.
![نقطتان )2)
The correct loops to print the
* pattern below are
**
***
****
*****
for(int i=1;i<3;i++) for(int j=1;j<5;j++) O
for(int i=0;i<5;i++) for(int i=0;i<5;i++) O
for(int i=1;i<5;i++) for(int j=1;j<=i;j++) O
for(int j=0;j<5;j++) for(int i=0;i<=j;i++) O
for(int i=1;i<j;i++) for(int j=1;j<i;j++) O
for(int i=5;i>=1;i++) for(int j=5;j>=1;j++) O](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7292d73c-8a58-4dc0-9a6d-a8c50dc43918%2F8a5c05e9-a3f8-4811-9a6f-0744a46dbb32%2Fcz9tfl_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)