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

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1976


What is pragma c?

1118


What are the different data types in C?

1201


What are the types of c language?

1029


How can you find the exact size of a data type in c?

1001


What is null pointer constant?

1158


What is advantage of pointer in c?

1184


Explain what is a 'locale'?

1080


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6864


What is difference between class and structure?

1114


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2326


How many identifiers are there in c?

1019


Suggesting that there can be 62 seconds in a minute?

1044


Why do we use stdio h and conio h?

1082


Explain c preprocessor?

1110