answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main ()

{

float a,r,ans,pow_r=1;

int i;

clrscr();

printf("Enter first Term: ");

scanf("%f",&a);

printf("Enter Common Ratio: ");

scanf("%f",&r);

for(i=1;i<=25;i++)

{

ans=pow_r*a;

printf("\t%f",ans);

pow_r=r*pow_r;

}

getch();

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you find First 25 terms of geomatric series in c programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the C programming of the sum of the series 5 plus 55 plus 555 plus . plus n terms?

Find the Sum to n terms of the series 5 5+55+555+ +n Terms


What is 1 plus 1 half plus 1 third plus 1 quarter plus 1 fifth and so on?

This series is known as the Harmonic Series and it diverges but very, very slowly. For example, the first 100 terms sum to 5.187...., the first 1000 terms to 7.486...., and the first 1000000 terms to 14.392.... There are many proofs of the divergence of this series and an internet search of Harmonic Series will no doubt find many of them.


Will there be another series after Harry Potter?

There are lots of series out there for people to enjoy. In terms of a series by J.K. Rowling, she is working on a crime series, the first book was released in early 2013.


The sum of the first 5 terms of an arithmetic series is 85. The sum of the first 6 terms is 123. Determine the first four terms of the series.?

Suppose the first term is a, the second is a+r and the nth is a+(n-1)r. Then the sum of the first five = 5a + 10r = 85 and the sum of the first six = 6a + 15r = 123 Solving these simultaneous equations, a = 3 and r = 7 So the first four terms are: 3, 10, 17 and 24


Explain the Abstraction terms in the context of object oriented programming Also explain how these concepts are implemented in C by giving an example program for each?

g terms in the context of object oriented programming


How can you find the nth partial?

The Nth partial sum is the sum of the first n terms in an infinite series.


What does the abbreviation '3GL' stand for in terms of computer programming?

3rd Generation Language


What does label mean in computer terms?

It is used in programming to denote the name of an object


What does summation of infinite series?

The summation of a geometric series to infinity is equal to a/1-rwhere a is equal to the first term and r is equal to the common difference between the terms.


Can you still be an engineer if you are not good at computer programming in terms of writing code?

Yes. If you are professionaly trained for both terms of engineering, there is a possibility that you can.


What is the difference between a sequence and a series?

The sum of the terms in a sequence is called a series. Sequence is a function whose domain is the natural numbers. So f(1)= first entry in the sequence, and f(2) is the next.... f(n) is the nth term. We usually don't write sequences that way. Instead of f(1) we write, a1 to refer to the first term. The function tells us the rule we use to find the terms of the sequence. So for example, f says take n and square it. Then the first 3 terms of the sequence are 1, 4 and 9 and the first 3 terms of the series are 1, 5 and 14


What is the difference between an arithmetic series and a geometric series?

An arithmetic series is the sequence of partial sums of an arithmetic sequence. That is, if A = {a, a+d, a+2d, ..., a+(n-1)d, ... } then the terms of the arithmetic series, S(n), are the sums of the first n terms and S(n) = n/2*[2a + (n-1)d]. Arithmetic series can never converge.A geometric series is the sequence of partial sums of a geometric sequence. That is, if G = {a, ar, ar^2, ..., ar^(n-1), ... } then the terms of the geometric series, T(n), are the sums of the first n terms and T(n) = a*(1 - r^n)/(1 - r). If |r| < 1 then T(n) tends to 1/(1 - r) as n tends to infinity.