A program to display all even numbers in the range of 100 to 200.

 

#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();
int i;

for(i=100;i<=200;i=i+2)
cout<<i<<" ";

getch();
}

 

< Back