Question and answer
the number that tells a c++ program to end a loop is called
Question
Asked 11/19/2008 3:53:35 PM
Updated 1/24/2024 5:46:30 AM
1 Answer/Comment
This conversation has been flagged as incorrect.
f
Get an answer
Original conversation
User: the number that tells a c++ program to end a loop is called

Weegy: End for loop cout << "..."; cin.sync(); cin.get(); cout << endl << endl << endl; cout << "Thanks for using the Fibonacci Generator!"; cin.get(); return 0; 0 will end the loop

User: what is the name of the number value that will end a loop in c++

Weegy: The while loop is well above where you're setting the value to 0 again (expecting to go back up to the loop). It won't do it at that point, it will continue processing till the end of the file. [ Suggestion : possibly move the while loop into its own function, and therefor you can call it all you want, from wherever you want, but as it is now, it will only run through the while loop as it comes down onto the while loop, after its out, it will continue to process downward until the code moves the processing elsewhere (such as a function) ]

Question
Asked 11/19/2008 3:53:35 PM
Updated 1/24/2024 5:46:30 AM
1 Answer/Comment
This conversation has been flagged as incorrect.
New answers
Rating
3
In C++, the number that tells a program to end a loop is typically referred to as the loop's "termination condition" or "exit condition" or break condition.

Added 1/24/2024 5:44:21 AM
This answer has been confirmed as correct and helpful.
Comments

There are no comments.

Add an answer or comment
Log in or sign up first.
40,229,757
questions answered
Popular Conversations
GET
Answers.
GET THE APP.
weegy*
*
Get answers from Weegy and a team of really smart live experts.
S
L
Points 75 [Total 136] Ratings 0 Comments 75 Invitations 0 Offline
S
Points 10 [Total 10] Ratings 1 Comments 0 Invitations 0 Offline
S
Points 1 [Total 1] Ratings 0 Comments 1 Invitations 0 Offline
S
Points 1 [Total 1] Ratings 0 Comments 1 Invitations 0 Offline
* Excludes moderators and previous
winners (Include)
Home | Contact | Blog | About | Terms | Privacy | © Purple Inc.