P1-P5: init

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-04-10 05:54:43 +05:30
commit 9006831163
7 changed files with 223 additions and 0 deletions

11
P2.java Normal file
View File

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