Explanation,
Here, i is initialized with value and in every loop, value in i increase by 2 until the condition gets false.
Output
Exercise:
Print even number less than 30 using for loop.
Technology has advanced to the point where programming has become an essential part of our lives. We use software and applications for communication, entertainment, education, and work, and these are all built on programming languages.