![laylay1548](/avatars/31004.jpg)
laylay1548
07.07.2019 •
Computers and Technology
True or false? the break statement causes a loop to stop the current iteration and begin the next one.
Solved
Show answers
More tips
- P Photography and Videography How to Choose a Digital Camera?...
- C Computers and Internet How to Properly Order Clothing from International Online Stores...
- F Food and Cooking How to Calculate the Gender of Your Child with Blood?...
- S Society and Politics 10 Tips for Boosting Your Self-Esteem...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
Answers on questions: Computers and Technology
- M Mathematics Solve for x. 3 − 3 4 x = 1 4 x − 7...
- M Mathematics Complete the number sentence to solve. Enter the answer in simplest form. Three students share 4 granola bars equally. How many granola bars does each student get? 4+ 3 = Each...
- S Social Studies Ipaliwag ang kasabihang Pagpapamalas ng kasipagan o pagtiyaga ...
Ответ:
False.
The different between break and continue instruction is that with break you exit the loop, and with continue you skip to the next iteration.
So, for example, a loop like
for(i = 1; i <= 10; i++){
if(i <= 5){
print(i);
} else {
break;
}
}
will print 1,2,3,4,5, because when i=6 you will enter the else branch and you will exit the loop because of the break instruction.
On the other hand, a loop like
for(i = 1; i <= 10; i++){
if(i % 2 == 0){
print(i);
} else {
continue;
}
}
Will print 2,4,6,8,10, because if i is even you print it, and if i is odd you will simply skip to the next iteration.
Ответ:
thanks for the points sorry not sorry ;b
Step-by-step explanation: