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
What is pre-emptive data structure and explain it with example?
What is 'bus error'?
What is c basic?
Describe the modifier in c?
i want to know the procedure of qualcomm for getting a job through offcampus
What is fflush() function?
Why pointers are used in c?
Tell me is null always defined as 0(zero)?
What is a structure and why it is used?
Why is sizeof () an operator and not a function?
where are auto variables stored? What are the characteristics of an auto variable?
What is realloc in c?
List the variables are used for writing doubly linked list program.
Describe dynamic data structure in c programming language?
Why main function is special give two reasons?