You are on page 1of 1

#include<iostream>

using namespace std;


int main()
{
int v1,v2,quantity;
cout<<"enter start: ";
cin>>v1;
cout<<"enter end: ";
cin>>v2;
quantity = 0;
for(;v1<=v2;v1++)
if(v1%2==0)
{
cout<<v1<<" ";
quantity++;
cout<<endl;
}
cout<< quantity<<" are total evens in the series";
return 0;
}

You might also like