English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

explain the difference between continue statement & break statement.Give example.what is the result of (5 &&2)?give reason.

2007-08-11 07:00:47 · 2 answers · asked by rajev v 1 in Computers & Internet Programming & Design

2 answers

If you read your course notes I'm sure you'll find the answer to your homework !

2007-08-11 07:02:22 · answer #1 · answered by stu_the_kilted_scot 7 · 2 0

A ruin fact breaks the looping and the execution is transferred to after the loop. A proceed fact basically skips the present new launch. contained in right here occasion, the execution will ruin out of the loop as quickly as the fee of i reaches 5: for(i=a million; i<= 10; i++) { if( ipercent5 == 0) { ruin; } } contained in right here occasion, the execution will proceed until the fee of i reaches 10: The values of i'm going to be revealed (aside from when I=5 and that i=10 for(i=a million; i<= 10; i++) { //print the fee of i right here if( ipercent5 == 0) { proceed; } } desire this facilitates.

2016-12-15 12:03:42 · answer #2 · answered by louthan 4 · 0 0

fedest.com, questions and answers