English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write a while loop that displays numbers 2, 4, 6, 8.......20. - Computer Science

Advertisements
Advertisements

Question

Write a while loop that displays numbers 2, 4, 6, 8.......20.

Short Note

Solution

While loop to
i = 2;
while(i<=20)
{
cout<< i <<“,”;
i = i+2;
}

shaalaa.com
Iteration 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 7. | Page 178
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×