Gitiles
Code Review
Sign In
gerrit.avm99963.com
/
edu
/
college-misc
/
9622dc7e2fce6ae7349338ae2be289e42d72795e
/
.
/
quad9
/
galois
/
labs
/
lab1
/
utils
/
cubs.cc
blob: ac064f91eedf3946a638e54bcd75149062165739 [
file
] [
log
] [
blame
]
Adrià Vilanova MartÃnez
4caba88
2021-10-06 21:51:23 +0200
[
diff
] [
blame
]
1
#include
<iostream>
2
3
int
main
()
{
4
int
p
=
43
;
5
for
(
int
i
=
0
;
i
<
p
;
++
i
)
{
6
int
a
=
(
i
*
i
*
i
)
%
p
;
7
std
::
cout
<<
i
<<
"^3 = "
<<
a
<<
std
::
endl
;
8
}
9
}