#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"Enter the nomber that started the series"<<endl;
cin>>a;
cout<<"Enter the nomber that end the series"<<endl;
cin>>b;
cout<<"Enter the difference in two numbers in the series"<<endl;
cin>>c;
do
{
cout<<"Value of a : "<<ends<<a<<endl;
a=a+c;
}
while(a<=b);
return 0;
}
No comments:
Post a Comment