Skip to content

Commit 00f89e1

Browse files
authored
Update samplemath.java
1 parent d84fe3c commit 00f89e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

myJava/math/samplemath.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,10 @@ public static void main(String args[]) {
6161
else{
6262
io.print("You are passed, congrats\n");
6363
}
64+
65+
int num = 5;
66+
long result = math.factorial(num);
67+
io.print(result);
68+
6469
}
6570
}

0 commit comments

Comments
 (0)