Commit 9918715a authored by Ivan  Bitesnik's avatar Ivan Bitesnik
Browse files

Ejercicio 2 nuevo comenzado

parent b1b14332
#include
using namespace std;
bool Operaciones(int i, int resto)
{
if (i == n) return resto == r;
for (int j = 0; j < 4; j++)
{
// Suma
if (j == 0)
{
resto += (numeros[i] % m);
}
// Resta
if (j == 1)
{
resto -= (numeros[i] % m);
}
// Multiplicación
if (j == 2)
{
resto *= (numeros[i] % m);
}
// Potenciación
if (j == 3)
{
pow();
}
}
}
int main()
{
return 0;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment