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
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
How do you define structure?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Is array a primitive data type in c?
Explain what are binary trees?
What is indirection?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Is there a way to compare two structure variables?
Write a program to print “hello world” without using semicolon?
How do you define a string?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What is the difference between ++a and a++?
How can you invoke another program from within a C program?