Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- float numb,q,fnum,desirnum;
- printf("Entre com a o numero, a razao e o primeiro elemento da progressao geometrica (respectivamente)\n");
- scanf("%f %f %f",&numb,&q,&fnum);
- desirnum = fnum*pow(q,numb-1);
- printf("O n-esimo termo da serie eh %f\n",desirnum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment