1- If c is a variable initialized to 1, how many times will the following loop be executed? while ((c > 0) && (c < 60)) { // loop body c ++; } 2- How many times it's a while loop should be printed? {int i = 1; %3D i=i- 1; while(i) { cout<<"its a while loop"; i++; }}
1- If c is a variable initialized to 1, how many times will the following loop be executed? while ((c > 0) && (c < 60)) { // loop body c ++; } 2- How many times it's a while loop should be printed? {int i = 1; %3D i=i- 1; while(i) { cout<<"its a while loop"; i++; }}
Chapter5: Looping
Section: Chapter Questions
Problem 11RQ
Related questions
Question
C++
![1- If c is a variable initialized to 1, how many times will the following loop
be executed?
while ((c > 0) && (c < 60))
{
// loop body
c ++;
}
2- How many times it's a while loop should be printed?
{int i = 1;
i =i - 1;
while(i)
{
cout<<"its a while loop";
i++;
}}](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9069a25d-3e4e-49de-9cd8-acf43ca2b4fd%2Fff9bad2b-52c1-4268-b3c9-3df255c8461c%2Fjks9b4z_processed.jpeg&w=3840&q=75)
Transcribed Image Text:1- If c is a variable initialized to 1, how many times will the following loop
be executed?
while ((c > 0) && (c < 60))
{
// loop body
c ++;
}
2- How many times it's a while loop should be printed?
{int i = 1;
i =i - 1;
while(i)
{
cout<<"its a while loop";
i++;
}}
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT