Question

What will be the output at line 13? 1 #include <iostream> 2 using namespace std; 5 int main() 6 int k-4; 8 for(int j-3; j<3+1

select the correct answer

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The correct option is (c)

Inside the loop k is incrementing once by 3 and then decrementing by 1. So in short it is increasing by 2.

The loop will run from j=3 to 14 which is 11 times.

So starting from 4, incremented 11 times by 2 is

4 + 11*2 = 26.

If you have any questions comment down and please? upvote thanks...

Add a comment
Know the answer?
Add Answer to:
select the correct answer What will be the output at line 13? 1 #include <iostream> 2...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT