mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
test a simple loop in Simple.java
This commit is contained in:
parent
1dd25325c8
commit
011cbe44e3
@ -1,7 +1,11 @@
|
||||
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) {
|
||||
int a = 1;
|
||||
int b = 2;
|
||||
int c = a + b;
|
||||
pow(2, 3);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user