Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*#include <iostream>
- #include <conio.h>
- #include <math.h>
- using namespace std;
- float suma(float n, float a){
- float b,c,d,e;
- b=(pow((-1),(n+1)));
- c=(2*n-1)*(pow(a,pow(2,(n-1))));
- d=2*n;
- e=b*(c/d);
- return e;
- }
- float main(){
- float N,a;
- int a,b,c;
- while (1){
- cout<<"Ingrese N : "<<endl;
- cin>>N;
- if(N>=0&&N<=21)break;
- }
- while (2){
- cout<<"Ingrese a : "<<endl;
- cin>>a;
- if(a<0.5&&a>2)break;
- }
- a=0;
- b=1;
- do{
- a+=b;*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement