From 362fe0e41abe73c655abb1996ea64481d8e80350 Mon Sep 17 00:00:00 2001 From: tarunrajl <44336930+tarunrajl@users.noreply.github.com> Date: Mon, 22 Oct 2018 21:42:50 +0530 Subject: [PATCH] Added outputs for better understanding --- break-continue/src/break-continue.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/break-continue/src/break-continue.cpp b/break-continue/src/break-continue.cpp index 3affcb9..6f1a1ad 100644 --- a/break-continue/src/break-continue.cpp +++ b/break-continue/src/break-continue.cpp @@ -24,21 +24,35 @@ int main() { cout << "Looping ..." << endl; } + Output: + 1 + 2 + 3 + */ /* continue ... for (int i = 0; i < 5; i++) { + + if (i == 3) { + continue; + } cout << "i is: " << i << endl; - if (i == 3) { - continue; - } + cout << "Looping ..." << endl; } + + Output: + 1 + 2 + 4 + */ + const string password = "hello";