extras: add P16-P23, P25

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-06-07 03:37:31 +05:30
parent 14898356a8
commit cc83093210
9 changed files with 153 additions and 0 deletions

11
P18.java Normal file
View File

@@ -0,0 +1,11 @@
public class P18 {
public static void main(String[] _args) {
int a = 5, b, f;
b = f = a;
while (b-- > 1)
f *= b;
System.out.println(a + "! = " + f);
}
}