Section 1 Media And Information Literacy 5 Choose A Correct C For Loop Syntax A For Initalization Starting Point C 1 (37.59 KiB) Viewed 53 times
Section 1 Media And Information Literacy 5 Choose A Correct C For Loop Syntax A For Initalization Starting Point C 2 (28.68 KiB) Viewed 53 times
Section - 1: Media and Information Literacy 5 Choose a correct C++ for loop syntax a for(initalization/starting point; condition; inc/dec) (// statements }; b for(declaration; condition; incrementoperation){ // statements }; с C for(declaration; incrementoperation, condition){ // statements }; d for(initalization/starting point; condition; declaration){ // statements };
€ GCW1 Term 2 Section - 2: Technology and Research skills 8 What's wrong? for (int k = 2, k <=12, k++) a the increment should always be ++k b the variable must always be the letter i when using a for loop there should be a semicolon at the end of the statement d the commas should be semicolons
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!