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 a method in c?
What is action and transformation in spark?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Write a program to check palindrome number in c programming?
What does *p++ do?
How can I write a function analogous to scanf?
Explain the difference between exit() and _exit() function?
how to find binary of number?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What do you mean by command line argument?
How can my program discover the complete pathname to the executable from which it was invoked?
formula to convert 2500mmh2o into m3/hr
Why n++ execute faster than n+1 ?