Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Lucia Maria Secin
algo3 tp1
Commits
9918715a
Commit
9918715a
authored
2 years ago
by
Ivan Bitesnik
Browse files
Options
Download
Email Patches
Plain Diff
Ejercicio 2 nuevo comenzado
parent
b1b14332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
src/Ej3/ej2.cpp
src/Ej3/ej2.cpp
+46
-0
No files found.
src/Ej3/ej2.cpp
0 → 100644
View file @
9918715a
#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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment