Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program for the following series:
1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms

Answer Posted / guest

#include<iosteram.h>
#include<conio.h>
int seri(int)
{
int r,s;
r=s*m+var;
return r;
}
void main()
{
int a[20],b[20];
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a[i];
int var=-1;
m=a[i];
cout<<m;
getch();
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pre-emptive data structure and explain it with example?

3791


What is 'bus error'?

1210


What is c basic?

1228


Describe the modifier in c?

1150


i want to know the procedure of qualcomm for getting a job through offcampus

2519


What is fflush() function?

1192


Why pointers are used in c?

1074


Tell me is null always defined as 0(zero)?

1141


What is a structure and why it is used?

1295


Why is sizeof () an operator and not a function?

1093


where are auto variables stored? What are the characteristics of an auto variable?

1109


What is realloc in c?

1169


List the variables are used for writing doubly linked list program.

2089


Describe dynamic data structure in c programming language?

1140


Why main function is special give two reasons?

1607