English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What is the output of the following code? for (int i=2; i<=10 ; i+=2)cout << i; - Computer Science

Advertisements
Advertisements

Question

What is the output of the following code?

for (int i=2; i<=10 ; i+=2)
cout << i;

One Line Answer

Solution

Output: 2 4 6 8 10

shaalaa.com
Selection Statements
  Is there an error in this question or solution?
Chapter 10: Flow of Control - Evaluation - Section - B [Page 178]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 10 Flow of Control
Evaluation - Section - B | Q 5. | Page 178
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×