#include<conio.h>
#include<iostream.h>
void main()
{
int a, b;
cout<<"Enter
Starting Limit: ";
cin>>a;
cout<<"Enter
ending Limit: ";
cin>>b;
cout<<"All
Even Numbers Between "<<a<<" &
"<<b<<" is\n";
while
(a<=b)
{
if (a!=0 && a%2==0)
cout<<a<<"
";
a++;
}
getch();
}
No comments:
Post a Comment