mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
12 lines
201 B
Java
12 lines
201 B
Java
public class Simple {
|
|
private static int pow(int a, int b) {
|
|
int c = 1;
|
|
for (int i = 0; i < b; ++i) c *= a;
|
|
return c;
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
pow(2, 3);
|
|
}
|
|
}
|