Answer to Question #225599 in C++ for Gee

Question #225599

A continue statement is used in an iteration control to skip the remaining statements in the loop and proceed with the next iteration of the loop


1
Expert's answer
2021-08-12T16:29:30-0400
#include <iostream>
using namespace std;


int main() {
  for (int i = 0; i < 15; i++) {
    if (i == 7) {
      break;
    }
    cout << i << "\n";
  } 
  return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS