Computer Science, asked by progamerxd23, 2 days ago

Write a C++ program to display the even numbers from 25 to 50​

Answers

Answered by rajbirsangwan27
1

Answer:

In this C++ Program, we alter the for loop (for(int i = 2; i <= number; i= i + 2)) to remove the If statement to return even Numbers. Here, we incremented the i value to 2 (instead of 1). So that every number from 2 with an increment of two will be an even number.

Similar questions