Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void multiplicar(int,int);
- int main()
- {
- multiplicar(5,5);
- return 0;
- }
- void multiplicar(int numero, int n)
- {
- if(n >= 1)
- {
- multiplicar(numero,n-1);
- }
- std::cout << numero << " x " << n << " = " << (numero * n) << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement