Gitiles
Code Review
Sign In
gerrit.avm99963.com
/
edu
/
college-misc
/
52e9843dc90ab73e03def432d14252e2020e1d7a
/
.
/
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
}