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

Explain why C language is procedural?

766


What is the explanation for the dangling pointer in c?

669


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2243


Is c object oriented?

536


Explain null pointer.

615






why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

640


What is the process to create increment and decrement stamen in c?

583


How pointers are declared?

557


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

596


Explain how do you list files in a directory?

612


If I have a char * variable pointing to the name of a function ..

646


How can you avoid including a header more than once?

561


what is the syallabus of computer science students in group- 1?

1836


Difference between constant pointer and pointer to a constant.

607


Explain what are its uses in c programming?

590