Files
javalab/P2.java
Amneesh Singh 9006831163 P1-P5: init
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-04-10 05:54:43 +05:30

11 lines
184 B
Java

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);
}
}