daily pastebin goal
43%
SHARE
TWEET

Untitled

BlaxZtar Jun 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4. int main ()
  5.  
  6. {   int vFactorial, vNumero = 1;
  7.     std::cout << "Bienvenido a la calculadora factorial." << std::endl;
  8.     std::cout << "**************************************" << std::endl;
  9.     std::cout << "Ingrese aqui aquel numero el cual desee averiguar su factorial: ";
  10.     std::cin >> vNumero;
  11.  
  12.     double Factorial(double vNumero, double vFactorial); {
  13.     if (vNumero<=1) return 1;
  14.     else return vNumero*vFactorial(vNumero-1);
  15.     }
  16.  
  17.     std::cout << std::endl;
  18.     std::cout << "El factorial de su numero es: " <<vFactorial<<endl;
  19.     return 0;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top