#include #include using namespace std; int potencia(int x,int y){ int pot=1,i; for(i=1;i<=y;i++) pot*=x; //pot=pot*x return pot; } bool esDigito(char car){ bool resultado=false; if ((car>='0')&&(car<='9')) resultado=true; return resultado; } int main(){ int val1,val2; setlocale(LC_ALL, ""); cout<<"Ingrese dos valores enteros positivos (>=0): num1="; cin>>val1; cout<<"num2="; cin>>val2; cout<