Advertisement
NoExisteLink

no

May 9th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. /*#include <iostream>
  2. #include <conio.h>
  3. #include <math.h>
  4. using namespace std;
  5. float suma(float n, float a){
  6. float b,c,d,e;
  7. b=(pow((-1),(n+1)));
  8. c=(2*n-1)*(pow(a,pow(2,(n-1))));
  9. d=2*n;
  10. e=b*(c/d);
  11. return e;
  12. }
  13. float main(){
  14. float N,a;
  15. int a,b,c;
  16. while (1){
  17. cout<<"Ingrese N : "<<endl;
  18. cin>>N;
  19. if(N>=0&&N<=21)break;
  20. }
  21. while (2){
  22. cout<<"Ingrese a : "<<endl;
  23. cin>>a;
  24. if(a<0.5&&a>2)break;
  25. }
  26. a=0;
  27. b=1;
  28. do{
  29. a+=b;*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement