Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Write a C++ Program to prints series given by user.
SUBMITTED BY:
Nrupeshsinh
DATE:
July 4, 2016, 1:49 p.m.
FORMAT:
Text only
SIZE:
368 Bytes
Raw
Download
Tweet
HITS:
479
Go to comments
Report
# include<iostream.h>
# include<stdio.h>
# include<conio.h>
class myclass
{
public:
void series()
{
int i,m,n;
cout<<"enter starting value=";
cin>>m;endl;
cout<<"enter ending value=";
cin>>n;endl;
for(i=m; i<=n; i++)
{
cout<<i<<",";
}
}
};
void main()
{
clrscr();
myclass obj;
obj. series();
getch();
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus