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