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

 

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

void main()
{
clrscr();
int a=100;

while(a<=200)
{
cout<<a<<" ";
a=a+2;
}

getch();
}

 

< Back