0 votes 0 votes Why this does not skips the part of loop. For (i=1;i<=15;i++). Cout<<"*"<<endl; for(j=1;j<=18;j++). Cout<<''*"<<; if((i==4)&&(j<5)). Continue; Simran Singh asked Aug 21, 2017 Simran Singh 276 views answer comment Share Follow See 1 comment See all 1 1 comment reply Gaurav Joshi commented Aug 22, 2017 reply Follow Share Because if statement is outside the loop. as their is no { ( curly brakets) after the loop so cout<<"*"; is the only statement which will be printed many times. after execution of both the loops the if block will run. Now i is 15 and j is 18 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes "contiue" statement terminates the further iterations of for loop since If statement is not in for loop so it will execute properly. sandeepjkh answered Aug 25, 2017 sandeepjkh comment Share Follow See all 0 reply Please log in or register to add a comment.