What's wrong? for (int k =2, k<=12, k++) the increment should always be ++k B the commas should be semicolons the variable must always be the letter i when using a for loop there should be a semicolon at the end of the statement

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 10PE
icon
Related questions
Topic Video
Question
c++
In C++, which of the following objects need to be used in order to open a file for writing purpose?
iomanip
ofstream
iostream
ifstream
Transcribed Image Text:In C++, which of the following objects need to be used in order to open a file for writing purpose? iomanip ofstream iostream ifstream
What's wrong?
for (int k = 2, k<=12, k++)
A the increment should always be ++k
B) the commas should be semicolons
the variable must always be the letter i when using a for loop
D) there should be a semicolon at the end of the statement
Transcribed Image Text:What's wrong? for (int k = 2, k<=12, k++) A the increment should always be ++k B) the commas should be semicolons the variable must always be the letter i when using a for loop D) there should be a semicolon at the end of the statement
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT